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='abc...', 3) 11SAX.characters( 12 , 4) 13SAX.startElementNs(element, NULL, NULL, 0, 0, 0) 14SAX.getEntity(bar) 15SAX.characters(def, 3) 16SAX.endElementNs(element, NULL, NULL) 17SAX.characters( 18, 1) 19SAX.endElementNs(root, NULL, NULL) 20SAX.endDocument() 21