SAX.setDocumentLocator() SAX.startDocument() SAX.internalSubset(doc, , ) SAX.elementDecl(doc, 1, ...) SAX.attributeDecl(doc, defatt, 9, 1, 0, ...) SAX.attributeDecl(doc, xmlns:tst, 1, 4, http://example.org, ...) SAX.attributeDecl(doc, tst:att, 9, 1, 1, ...) SAX.externalSubset(doc, , ) SAX.startElement(doc, att='1') SAX.endElement(doc) SAX.endDocument()