Hmm, I'll try that today... thanks!
b
Edwin Dankert wrote:
Another way would be to override the EntityResolver, and set
it on the underlying XMLReader or DocumentBuilder ...
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
public class LocalResolver implements EntityResolver
public InputSource resolveEntity( String publicId, String systemId) {
if ( systemId.equals( "http://www.foo.org/bar.dtd")) {
return new InputSource( "bar.dtd");
} else {
return null;
}
}
}
Regards,
Edwin
--
http://www.edankert.com/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user