Validation with Xerces 2.0, howto find element/attribute name?

I am using XML schema for validating XML xerces java parser 2.0.1.
When i parse and get an SAXParseException, how do I retrieve the element/attribute which caused the error? 
I could get it from the error message, but it's not a very good way, is it? am I missing something?

Anyone have good validation samples/pointers  with Xerces?

regards

-Stig

Received on Wednesday, 26 June 2002 06:04:08 UTC