Hi,

I have to develop an application that is supposed to accept XML data. I already have defined an XSD schema and validation against it works properly.

Problem appears when my client, instead of error messages like

"The value 'AAA' of attribute 'code' on element 'comm-response' is not valid with respect to its type, 'integer'.]"

(SAXException message) would like to receive error information codified. Client only wants to receive a code for the tag that produced the error (in this case, we will send a code assigned to tag 'AAA') and line/column information wouldn't be enough for him.

I tried to add a ContentHandler to the parser but it seems like content-related events are fired before the validation process so I can't keep control on what part of the XML file is being validated.

Thanks in advanced,
Jorge



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to