SAX.setDocumentLocator() SAX.startDocument() SAX.startElement(html) SAX.characters( , 1) SAX.startElement(body) SAX.characters( , 1) SAX.startElement(a, href='index.cgi?a&lt=1&gt=2') SAX.characters(link, 4) SAX.endElement(a) SAX.characters( , 1) SAX.startElement(a, href='index.cgi?a&lta&gta') SAX.characters(link, 4) SAX.endElement(a) SAX.characters( , 1) SAX.startElement(a, href='index.cgi?a<>') SAX.characters(link, 4) SAX.endElement(a) SAX.characters( , 1) SAX.endElement(body) SAX.characters( , 1) SAX.endElement(html) SAX.characters( , 1) SAX.endDocument()