Hi Varadharajan, I could be wrong, but I believe you can use DocumentBulderFactory.setAttribute() to set these features for Xerces implementation of the DocumentBulderFactory class. Please take a look these URLs:
http://xml.apache.org/xerces2-j/features.html http://xml.apache.org/xerces2-j/properties.html Thanks, Benson. -----Original Message----- From: Varadharajan Sethuraman [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 8:16 PM To: [EMAIL PROTECTED] Subject: RE: XML Validation Thanks Benson Cheng, Yes. There is setFeature() method in SAXParserFactory, XMLReader, and DOMParser but not there in DocumentBulderFactory/DocumentBulder. is there any alternate solution for DocumentBulderFactory/DocumentBulder? Regards Varadharajan S --- Benson Cheng <[EMAIL PROTECTED]> wrote: > 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] > __________________________________ 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]
