Posted: 6/8/2004 10:45:28 AM EDT
|
I'm performing validations on an XML document using an XSD using the MSXML parser. It works fine and I can return the various validation error messages when the document isn't valid. However, I need to return a friendly error to an end-user (a non-technical user). Is there a way to embed a friendly error message in an XSD? Something where I can turn this... "The 'vendorPhone' element has an invalid value according to its data type." Into this... "Please enter the vendor phone in the following format: (xxx) xxx-xxxx. Sure, I can capture these errors and use an XSL document to make them friendly, but I'd rather embed them in the XSD. |