Code example for Node

Methods: appendChild

0
            else         preInfo.add(new TextInfo(str));
        } else { 
            Node n;
            if (inCDATA) n = document.createCDATASection(str);
            else         n = document.createTextNode(str);
            currentNode.appendChild(n);
        } 
    } 
 
    /** 
     * <b>SAX</b>: Implements {@link 
     * org.xml.sax.ContentHandler#characters(char[],int,int)}. 
     */ 
    public void characters(char[] ch, int start, int length)
        throws SAXException { 
        stringBuffer.append(ch, start, length);
        stringContent = true;
    } 
 
 
    /**