So, you need to implement your own handler (instead of using the default). Therefore replace
saxParser.parse( thexml , new DefaultHandler() );
from
saxParser.parse( thexml , new MyFreakingHandler() );
where MyFreakingHandler implements the HandlerBase interface or can extend the DefaultHandler class. Then just do the implementation for methods like
public void startDocument () throws SAXException public void endElement (String name) throws SAXException
I do not know why you could not find any textbook on the Internet. I have not used SAXParser for at least 3 years, and in order to reply to your post, I just asked Google for help.
EDIT:
Alright, so clarify the situation. There used to be an official Java tutorial for SAX, which somehow I canโt find on the Internet right now, but there are still a lot of decent informal tutorials that can be very useful. Try this, for example: http://www.java-samples.com/showtutorial.php?tutorialid=152
source share