1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.startElement(html) 4 SAX.characters( 5 , 1) 6 SAX.startElement(body) 7 SAX.characters( 8 , 1) 9 SAX.startElement(pre) 10 SAX.startElement(a, href='toto') 11 SAX.endElement(a) 12 SAX.startElement(img, src='titi') 13 SAX.endElement(img) 14 SAX.endElement(pre) 15 SAX.characters( 16 , 1) 17 SAX.endElement(body) 18 SAX.characters( 19 , 1) 20 SAX.endElement(html) 21 SAX.characters( 22 , 1) 23 SAX.endDocument() 24