1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.startElement(element, name='foo', xmlns:rng='http://example.org/ns/1', xmlns='http://example.org/ns/1') 4 SAX.characters( 5 , 3) 6 SAX.startElement(empty) 7 SAX.endElement(empty) 8 SAX.characters( 9 , 1) 10 SAX.endElement(element) 11 SAX.endDocument() 12