posted 15 years ago
I am trying to do on the fly validation of an XML document that I am constructing.
I perform xsd validation of a Document object using an xsd file and javax.xml.validation.Validator. If the xsd validation fails, i get a SAXException. I need to identify programmatically which xml tag failed the validation. How can I do that?
If I perform the validation on an xml file, I get the line number of the error, but not for a Document object.
Is there an alternate solution to my problem?
Thanks!!