1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.startElement(root) 4 SAX.characters( 5 , 3) 6 SAX.startElement(foo, xmlns='http://abc') 7 SAX.endElement(foo) 8 SAX.characters( 9 , 3) 10 SAX.startElement(bar) 11 SAX.endElement(bar) 12 SAX.characters( 13 , 1) 14 SAX.endElement(root) 15 SAX.endDocument() 16