Skip to main content

XSD custom error messages

No replies
Joined: 2010-01-14


I'm validating an xml against a schema using the javax.xml api. I would like to know if there is any way in which I can configure the error messages that are displayed when the validation fails. Or if I could add some error codes to the schema so that the error codes will be sent along with the error.

Displaying cvc-attribute.3: The value '889923111' of attribute 'orderid' on element 'shiporder' is not valid with respect to its type, 'orderidtype' to the user is not very nice