SAX.setDocumentLocator() SAX.startDocument() SAX.internalSubset(doc, , ) SAX.elementDecl(doc, 1, ...) SAX.attributeDecl(doc, xmlns, 1, 4, http://www.example.com/, ...) SAX.externalSubset(doc, , ) SAX.startElementNs(doc, NULL, 'http://www.example.com/', 1, xmlns='http://www.example.com/', 0, 0) SAX.endElementNs(doc, NULL, 'http://www.example.com/') SAX.endDocument()