Hi,

I'm validating an xml document against a schema, using javax.xml.validation.Validator .

It generates a SAXException when the document is invalid.
It displays the error code (such as cvc-attribute) in the message of exception .
But i need only the error code part and not the description.
Is there any way to get the generated error code.

Thanks in advance.

Sachin