SAX.setDocumentLocator() SAX.startDocument() SAX.internalSubset(HTML, -//W3C//DTD HTML 4.0 Transitional//EN, http://www.w3.org/TR/REC-html40/loose.dtd) SAX.startElement(html) SAX.characters( , 1) SAX.startElement(head) SAX.characters( , 3) SAX.startElement(title) SAX.endElement(title) SAX.characters( , 1) SAX.endElement(head) SAX.characters( , 1) SAX.startElement(body) SAX.characters( , 1) SAX.startElement(ul) SAX.characters( , 1) SAX.startElement(li) SAX.characters(First item , 11) SAX.endElement(li) SAX.startElement(li) SAX.characters(Second item, closes the first , 34) SAX.endElement(li) SAX.endElement(ul) SAX.characters( , 2) SAX.endElement(body) SAX.endElement(html) SAX.characters( , 1) SAX.endDocument()