1SAX.setDocumentLocator() 2SAX.startDocument() 3SAX.internalSubset(doc, , ) 4SAX.elementDecl(doc, 3, ...) 5SAX.attributeDecl(doc, val, 1, 3, NULL, ...) 6SAX.externalSubset(doc, , ) 7SAX.startElementNs(doc, NULL, NULL, 0, 1, 0, val='v1"/...', 2) 8SAX.endElementNs(doc, NULL, NULL) 9SAX.endDocument() 10