[jdom-interest] problems about DTD
Alex Rosen
arosen at silverstream.com
Tue Apr 9 08:07:05 PDT 2002
IBM says that XML4J is based on Xerces 1.4.2. Searching the Xerces 1.4.1
codebase on my machine, it looks like it supports it. Are you positive that
that's the actual version that your code is picking up?
Alex
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Gu Xueying (Shinnie
> Gu)
> Sent: Tuesday, April 09, 2002 6:02 AM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] problems about DTD
>
>
> 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/nonvalidati
> ng/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
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
> uraddr at yourhost.com
More information about the jdom-interest
mailing list