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.
This topic has been locked.
1 reply Latest Post - 2010-08-15T13:23:31Z by SystemAdmin
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 PostsACCEPTED ANSWER
Re: How to get the XML error codes2010-08-15T13:23:31Z in response to coolmavDo 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.