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