[jdom-interest] How to supress external DTD error
Andrew Zahra
andrew.zahra at gmail.com
Sun Nov 27 17:31:28 PST 2005
I am trying to parse a simple document being sent to me over TCP. I am using
the SAXBuilder class with its default constructor. Problem is the XML doc I
am receiving specifies a DTD. Even though I am not validating the document I
get an error saying that the external DTD file is not found.
If I create an empty DTD file it is happy, but I don't want to do this.
Is there any way I can stop it trying to open the external DTD or supress
the error and make it continue?
I did try using setErrorHandler with an error handler that just returned on
error but that didn't work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20051128/dd2c95a7/attachment.htm
More information about the jdom-interest
mailing list