1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.internalSubset(root, , ) 4 SAX.entityDecl(foo, 1, (null), (null), abc) 5 SAX.getEntity(foo) 6 SAX.entityDecl(bar, 1, (null), (null), def) 7 SAX.getEntity(bar) 8 SAX.externalSubset(root, , ) 9 SAX.getEntity(foo) 10 SAX.startElement(root, attribute='&foo;') 11 SAX.characters( 12 , 4) 13 SAX.startElement(element) 14 SAX.getEntity(bar) 15 SAX.characters(def, 3) 16 SAX.reference(bar) 17 SAX.endElement(element) 18 SAX.characters( 19 , 1) 20 SAX.endElement(root) 21 SAX.endDocument() 22