Click to See Complete Forum and Search --> : XSD custom error messages


eborix13
01-14-2010, 03:50 PM
Hi,

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 :)

Thanks...