SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(root, , )
SAX.entityDecl(foo, 1, (null), (null), abc)
SAX.getEntity(foo)
SAX.entityDecl(bar, 1, (null), (null), def)
SAX.getEntity(bar)
SAX.externalSubset(root, , )
SAX.getEntity(foo)
SAX.startElement(root, attribute='&foo;')
SAX.characters(
   , 4)
SAX.startElement(element)
SAX.getEntity(bar)
SAX.characters(def, 3)
SAX.reference(bar)
SAX.endElement(element)
SAX.characters(
, 1)
SAX.endElement(root)
SAX.endDocument()