wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with XMLReader setProperty method
 
Similar Threads
XMLReader / SAXParser.getReader() ??
Stop Xerces from requesting DTD
SAXParser Factory
For all SCWCD guys : Doubts
XSD & DTD ?