[jdom-interest] problems about DTD

Gu Xueying (Shinnie Gu) Shinnie.Gu at iuniverse.com.cn
Tue Apr 9 03:01:48 PDT 2002


This is my codes following the FAQ:How do I keep the DTD from loading? Even
when I turn off validation the parser tries to load the DTD file.

	SAXBuilder builder = new
SAXBuilder("org.apache.xerces.parsers.SAXParser",true);
	
builder.setFeature("http://apache.org/xml/features/nonvalidating/load-extern
al-dtd",false);
But when I run it, exception appear:
org.jdom.JDOMException:
http://apache.org/xml/features/nonvalidating/load-external-dtd feature not
recognized for SAX driver org.apache.xerces.parsers.SAXParser
The version of xerces I use is : XML4J-3_2_1



More information about the jdom-interest mailing list