I know there are few classes has the setFeature() method, 1)SAXParserFactory, 2)XMLReader, and 3)DOMParser classes, depends on how you create the parser.
Thanks, Benson. -----Original Message----- From: Varadharajan Sethuraman [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 7:58 PM To: [EMAIL PROTECTED] Subject: RE: XML Validation Thanks Benson Cheng, could you pls tell me where should i set false of those two features? Regards Varadharajan S --- Benson Cheng <[EMAIL PROTECTED]> wrote: > I think if you set these two features to false, then > Xerces will not try > to load the DTD. > > > http://apache.org/xml/features/nonvalidating/load-dtd-grammar > > http://apache.org/xml/features/nonvalidating/load-external-dtd > > Thanks, > Benson. > > -----Original Message----- > From: Varadharajan Sethuraman [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 22, 2004 9:10 PM > To: [EMAIL PROTECTED] > Subject: XML Validation > > > Hi, > > XML File > --------- > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE personnel SYSTEM "personal.dtd"> > <personnel> > > <person id="Big.Boss"> > <name><family>Boss</family> > <given>Big</given></name> > <email>[EMAIL PROTECTED]</email> > <link subordinates="one.worker two.worker > three.worker four.worker five.worker"/> > </person> > </personnel> > > I am trying to parse the above xml file using Xerces > DOM Parser i had given setValidation(false); > eventhough it is looking for the DTD > ("personal.dtd") > file. > > is it a bug or not? if not then what is the solution > for that? > > Regards > Varadharajan S > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. > Try it! > http://webhosting.yahoo.com/ps/sb/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
