Code example for LexicalHandler

Methods: startEntity

0
 
                // startEntity outputs only Text but not Element, Attr, Comment  
                // and PI child nodes.  It does so by setting the m_inEntityRef  
                // in ToStream and using this to decide if a node is to be  
                // serialized or not. 
                fLexicalHandler.startEntity(eref.getNodeName());
            }  
 
        } else { 
            EntityReference eref = node;
            // entities=true or false,  
            if (fLexicalHandler != null) {
                fLexicalHandler.endEntity(eref.getNodeName());
            } 
        } 
    } 
 
     
    // *********************************************************************** 
    // Methods to check well-formedness 
    // ***********************************************************************