Hi,
I have to validate a set of XML files against their DTD and print user-friendly error messages if validation fails.
I tried using popular parsers such as Xerces and the error message displayed is of the form:
Which unfortunately does not tell the user what is the offending element. I need to print something similar to error messages displayed on commercial tools like XMLSpy like:
The
Apache Crimson Parser which was part of JDK 1.4 distribution prints messages pointing to the cause of error. However this parser is not used anymore (is obsolete?)
and JDK1.5 uses Xerces as the default parser. Hence I am not very confident on using Crimson.
Is there any other parser that would satisfy my requirement?
Thanks in advance for your help,
Vijay