[jdom-interest] How to turn of DTD validation when using SAXBuilder?

Zhou Ping zhouping_jay at yahoo.com.cn
Sun Aug 25 22:51:27 PDT 2002


I'm using SAXBuilder to parse an existing XML
document:

SAXBuilder b = new SAXBuilder();
b.setValidation(false);
Document doc = b.build(in);

I've already turned off the validation, but the parser
still tried to find the DTD file declared in the XML
and throwed exceptions when not found. I'd like to
completely turn off this validation, does anyone know
how to do it? Thank you for any help.

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



More information about the jdom-interest mailing list