I am a beginner in SAX. I am able to get the error message on the vent of an exception (error or warning). But I want to get the element which caused it. How can that be done?. eg: The error msg shown now is like " Attribute "RollNumber" is required and must be specified for element
"StudentDetails". in entity
file:///D:/abc/def/classes/abc.xml"
What I want is a method by which I get the element name only ie StudentDetails and the value which is wrong(in case it is a Data Value error).