Hi,
I don't think there is any API which you can call directly to get your thing done. But there is way to get it done if you want this to be done by all means.
First you have to handle SAXParseException. Couple of API's in it will give you the line number and column position where parser sees violation.
You can develope custom class which handles the XML using java.io classes. You can easily extract the tag with the line & column obtained from above step.
But I feel all this is not worthful as you can easily decipher what/where the violation as occurred by looking to Exception message.
In addition if you want to look more about the cause of the exception you can look into url http://www.w3.org/TR/xmlschema-1/#outcomes
Purushotham
Nithya <[EMAIL PROTECTED]> wrote:
Hi
I am doing schema validation of an xml. I need to find out the specific
element tag or attribute which did not pass the schema validation.
Please could somebody give pointers for this.
thanks
nithya
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.