1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.internalSubset(doc, , ) 4 SAX.elementDecl(doc, 1, ...) 5 SAX.attributeDecl(doc, defatt, 9, 1, 0, ...) 6 SAX.attributeDecl(doc, xmlns:tst, 1, 4, http://example.org, ...) 7 SAX.attributeDecl(doc, tst:att, 9, 1, 1, ...) 8 SAX.externalSubset(doc, , ) 9 SAX.startElementNs(doc, NULL, NULL, 1, xmlns:tst='http://example.org', 3, 2, att='1"/>...', 1, defatt='0...', 1, tst:att='1...', 1) 10 SAX.endElementNs(doc, NULL, NULL) 11 SAX.endDocument() 12