setDocumentLocator(locator={columnNumber=1, lineNumber=1})
startDocument()
   startDTD(name="doc", publicId="", systemId="")
      internatlEntityDecl(name="e", value="<foo></foo>")
   endDTD()
   startElement(namespaceURI="", localName="doc", qName="doc", atts=[])
      startElement(namespaceURI="", localName="foo", qName="foo", atts=[])
      endElement(namespaceURI="", localName="foo", qName="foo")
   endElement(namespaceURI="", localName="doc", qName="doc")
endDocument()
