1 SAX.setDocumentLocator() 2 SAX.startDocument() 3 SAX.comment( comment before the DTD ) 4 SAX.internalSubset(doc, , ) 5 SAX.elementDecl(doc, 2, ...) 6 SAX.externalSubset(doc, , ) 7 SAX.comment( comment after the DTD ) 8 SAX.startElement(doc) 9 SAX.endElement(doc) 10 SAX.endDocument() 11