I am using a simple Sax parser to validate the XML with a XSD.
Is there a way to get the list of Error codes that the SAX parser is throwing.
Can you please give a sample code as to how to get the error codes.
Please refer the attachement
All I am getting cvc-complex-type.2.4.a, and other related error messages.
Pinned topic How to get the XML error codes
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-08-15T13:23:31Z at 2010-08-15T13:23:31Z by SystemAdmin
SystemAdmin 110000D4XK1830 Posts
Re: How to get the XML error codes2010-08-15T13:23:31ZThis is the accepted answer. This is the accepted answer.Do not have to look very far, check this article out.
At the limit, you can simply copy its "list 3" and pass an instance of the error handler to the validator, equally explicitly shown in the article.