1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, http://www.w3.org/TR/REC-html40/loose.dtd) 4SAX.startElement(html) 5SAX.ignorableWhitespace( 6, 1) 7SAX.startElement(head) 8SAX.ignorableWhitespace( 9 , 3) 10SAX.startElement(title) 11SAX.endElement(title) 12SAX.ignorableWhitespace( 13, 1) 14SAX.endElement(head) 15SAX.ignorableWhitespace( 16, 1) 17SAX.startElement(body) 18SAX.characters( 19, 1) 20SAX.startElement(ul) 21SAX.characters( 22, 1) 23SAX.startElement(li) 24SAX.characters(First item 25, 11) 26SAX.endElement(li) 27SAX.startElement(li) 28SAX.characters(Second item, closes the first , 34) 29SAX.endElement(li) 30SAX.endElement(ul) 31SAX.characters( 32 33, 2) 34SAX.endElement(body) 35SAX.endElement(html) 36SAX.ignorableWhitespace( 37, 1) 38SAX.endDocument() 39