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