libxml2
1: SAX.setDocumentLocator() 2: SAX.startDocument() 3: SAX.startElement(foo) 4: SAX.endElement(foo) 5: SAX.endDocument()