if (!inDTD) throw new SAXException("internal entity decl outside DTD");
  public void internalEntityDecl(String name, String value)    throws SAXException  {    if (interrupted)      {        return;      }    DomDoctype doctype = (DomDoctype) ctx;    Entity entity = doctype.declareEntity(name, null, null, null);    if (entity != null)      {        Node text = doc.createTextNode(value);        entity.appendChild(text);      }  }