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