So I'm using the SAX parser in my program. What I want to do is get the the position(line number, etc) of an error, just as many xml readers do when they try to validate an XML
doc. So the parser throws an exception if, say, a > is missing on a field and says that such data is missing. This is a good start. However, I don't know how, and can't figure out how, to get the line number at the time of the exception so I can direct the user to a more concise area in the XML doc to fix.
Anyone know of some examples or how to go about doing this?