icewind wrote:
Ok, I used parser.setFeature to turn the validationThe solution is relatively simple - you need to implement your own EntityResolver, and set the parser to use your resolver instead of the built-in one. You need to implement the following method in your EntityResolver:
off. This helps, but it turns out there are entity
references in the XML files as well. These are causing
the same problems the DTD references were causing
before...
Any suggestions with regards to this?
/** This method is called when the parser encounters a reference
* to external entity. If this method returns valid InputSource, with
* InputStream open, the parser will use it, otherwise it will
* try to get the resource itself, opening any connections needed.
*/
public InputSource resolveEntity(String publicId, String systemId) {
...
}
It's good to extend DefaultHandler, to avoid implementing methods that don't matter to you.
--
Best regards,
Andrzej Bialecki
-------------------------------------------------
Software Architect, System Integration Specialist
-------------------------------------------------
FreeBSD developer (http://www.freebsd.org)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
