dcsimg

I am retreiving XML resources from the net and transforming them locally via XSL with Apache Xalan. Whenever an XML file contains a DOCTYPE declaration, the parser insists on looking up the remote DOCTYPE URL. How can I avoid that?

Davanum Srinivas

You need to set a custom EntityResolver as documented in:
http://xml.apache.org/xalan-j/apidocs/org/xml/sax/EntityResolver.html