Dantzler, DeWayne C wrote:
I'm trying to get the Parser to check only for well-formness and ignore
external Entities. I've set the option to disable the default entity
resolver and overridden the resovler to return NULL, but the Parser
still attempts to open the DTD referenced in the document.
Returning a null pointer tells the parser the EntityResolver instance did
not try to resolve the entity. Instead, return an InputSource instance
that's empty. An easy way to do that is to return a MemBufInputSource that
has a length of 0.
Dave