OK thanks, I solved it with:
doc.setEntityResolver(new EntityResolver() {
@Override
public InputSource resolveEntity(String publicId, String
systemId) throws SAXException, IOException {
if (systemId.contains("www.w3.org")) {
return new InputSource(new StringReader(""));
} else {
return null;
}
}
});
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Disable-DTD-validation-doesn-t-seem-to-work-DomRepresentation-tp5230305p5230447.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2626857