How can I raise a custom error message in an XSD?
Posted on 2006-06-29
I have an XSD document which validates my xml files. I want to display a custom error message when one of the criteria in the XSD definition is not met by the xml file. For example, I want to validate a node which contains a date value. If that date is not valid according to the schema definition, I want to raise custom error message saying the date is not valid.
Is it possible to raise custom error messages in xsd? If yes, how can we do that?
Looking forward to your response.