Code example for Document

Methods: createCDATASection

0
        public String cdata;
        public CDataInfo(String cdata) {
            this.cdata = cdata;
        } 
        public Node createNode(Document doc) {
            return doc.createCDATASection(cdata);
        } 
    } 
 
    static class TextInfo implements PreInfo { 
        public String text;
        public TextInfo(String text) {
            this.text = text;
        } 
        public Node createNode(Document doc) {
            return doc.createTextNode(text);
        } 
    } 
 
    /** 
     * Various elements encountered prior to real document root element.