I am trying to avoid parsing .xml file using SAXON by not reading DTD entry.My XML file doesnt has DTD entry (niether Internal nor External).So when i try to parse the xml i am getting exception from SAXON. Is there is any way that i can avoid looking for DTD entry and Parse XML file.The urgent help required.
Lot Thanks in Advance.
Praveen T I<br />Technical Associate,<br />Mahindra - British Telecom,<br />Pune - 411004
Your XML contains a reference to a DTD that can't be resolved? Then write an EntityResolver and apply it to your parser by calling setEntityResolver. Your EntityResolver should be just like the example in the API documentation for org.xml.sax.EntityResolver, but it should return
Joined: Aug 16, 2005
No.. here my XML doesnt have any DTD reference. I have removed DTD entry for some reason.And when i try to parse this xml the parser tries to find associated DTD and when it doesnt find entry it just throws exception.