Code example for Document

Methods: createCDATASection

0
     * 
     * @since Ant 1.6.3 
     */ 
    public static void appendCDATA(Element parent, String content) {
        Document doc = parent.getOwnerDocument();
        CDATASection c = doc.createCDATASection(content);
        parent.appendChild(c);
    } 
 
    /** 
     * Adds nested text in a new child element. 
     * 
     * <p>This means 
     * <pre>appendTextElement(&lt;a&gt;, "b", "c")</pre> 
     * creates 
     * <pre> 
     * &lt;a&gt; 
     *   &lt;b&gt;c&lt;/b&gt; 
     * &lt;/a&gt; 
     * </pre> 
     * </p>