Paolo Valladolid wrote:

I need to use Digester to parse XML that has been retrieved from a
database.  The XML I'm working with was received from elsewhere (ie. Not
created by our team).  How do I get Digester to ignore the <!DOCTYPE>
tag?  I've tried setValidating( false ) and it did not work.



The setValidating(false) call does indeed tell Digester to not validate the XML data. However, it does *not* tell the underlying XML parser to skip the DOCTYPE, and there is no API in JAXP to say that sort of thing.

If your problem is unresolved entities, one thing you can do is to provide your own EntityResolver method whose resolveEntity() method always returns null. That way, the parser won't go traipsing around the network trying to find things that it can't.



Thanks,



Paolo Valladolid

Software Developer

DFI International Government Services






Craig


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to