Hi -
I am using "com.ibm.xml.parser.Parser" for parsing XML which is in form of InputStream. The XML is well formed-ness but still it is giving parsing error as there is no DTD attach to the XML.
How can I make sure that Parser does not look for DTD.
Any help on this regarded will be greately appreciated.
Thank You
[email protected] Here is the code I am deploying
-------------------------------
try {
Parser parser = new Parser("OrderRequest") ;
Document
doc = parser.readStream(stream) ;
if (parser.getNumberOfErrors() > 0) {
System.exit(1) ; //If the documents has errors
}
}catch (Exception ioe)
{
System.err.println(ioe.toString());
}