public void startEntity(String name) throws org.xml.sax.SAXException {
  if (name.equals("[dtd]"))   m_inExternalDTD=true;
  if (!m_expandDTDEntities && !m_inExternalDTD) {
    startNonEscaping();
    characters("&" + name + ';');
    endNonEscaping();
  }
  m_inEntityRef=true;
}

public void startEntity ( String name ) throws org . xml . sax . SAXException { if ( name . equals ( "[dtd]" ) ) m_inExternalDTD = true ; if ( ! m_expandDTDEntities && ! m_inExternalDTD ) { startNonEscaping ( ) ; characters ( "&" + name + ';' ) ; endNonEscaping ( ) ; } m_inEntityRef = true ; }
report the beginning of an entity . the start and end of the document entity are not reported . the start and end of the external dtd subset are reported using the pseudo - name " [ dtd ] " . all other events must be properly nested within start / end entity events .
