jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes Help with XMLReader setProperty method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help with XMLReader setProperty method" Watch "Help with XMLReader setProperty method" New topic
Author

Help with XMLReader setProperty method

srinivasan gopalan
Greenhorn

Joined: Aug 02, 2006
Posts: 2
I need a method to set the DTD of the XMLReader.

This is how I set the XSD of the XMLReader.


XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");

parser.setProperty(�http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation�, �D:\xsd\today.xsd�);

I need a method similar to this so that I can set the DTD
 
 
subject: Help with XMLReader setProperty method