public void startEntity ( String name ) throws org . xml . sax . SAXException { if ( name . equals ( "[dtd]" ) ) m_inExternalDTD = true ; if ( ! m_expandDTDEntities && ! m_inExternalDTD ) { /* Only leave the entity as-is if * we've been told not to expand them * and this is not the magic [dtd] name. */ startNonEscaping ( ) ; characters ( "&" + name + ' ' ) ; endNonEscaping ( ) ; } m_inEntityRef = true ; }
Report the beginning of an entity .