SAX Assignment
SAX parses a document sequentially, doing a callback for each thing that it encounters in the XML file. Because this is very fast and takes a minimum amount of memory, it is ideal for some tasks.
http://www.cis.upenn.edu/~matuszek/cit597-2002/Assignments/sax-assignment.html