1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.internalSubset(doc, , ) 4 SAX.elementDecl(doc, 1, ...) 5 SAX.attributeDecl(doc, xmlns, 1, 4, http://www.example.com/, ...) 6 SAX.externalSubset(doc, , ) 7 SAX.startElementNs(doc, NULL, 'http://www.example.com/', 1, xmlns='http://www.example.com/', 0, 0) 8 SAX.endElementNs(doc, NULL, 'http://www.example.com/') 9 SAX.endDocument() 10