SAX.setDocumentLocator() SAX.startDocument() SAX.internalSubset(root, , ) SAX.entityDecl(foo, 1, (null), (null), abc) SAX.getEntity(foo) SAX.entityDecl(bar, 1, (null), (null), def) SAX.getEntity(bar) SAX.externalSubset(root, , ) SAX.getEntity(foo) SAX.startElementNs(root, NULL, NULL, 0, 1, 0, attribute='&foo...', 5) SAX.characters( , 4) SAX.startElementNs(element, NULL, NULL, 0, 0, 0) SAX.getEntity(bar) SAX.characters(def, 3) SAX.reference(bar) SAX.endElementNs(element, NULL, NULL) SAX.characters( , 1) SAX.endElementNs(root, NULL, NULL) SAX.endDocument()