Code example for Document

Methods: createComment

0
        public String comment;
        public CommentInfo(String comment) {
            this.comment = comment;
        } 
        public Node createNode(Document doc) {
            return doc.createComment(comment);
        } 
    } 
 
    static class CDataInfo implements PreInfo { 
        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;