Code example for Document

Methods: createProcessingInstruction

0
        public ProcessingInstructionInfo(String target, String data) {
            this.target = target;
            this.data = data;
        } 
        public Node createNode(Document doc) {
            return doc.createProcessingInstruction(target, data);
        } 
    } 
 
    static class CommentInfo implements PreInfo { 
        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;