1 7 8 package org.dom4j; 9 10 import java.util.Map ; 11 12 import org.xml.sax.EntityResolver ; 13 14 22 public interface Document extends Branch { 23 28 Element getRootElement(); 29 30 36 void setRootElement(Element rootElement); 37 38 47 Document addComment(String comment); 48 49 60 Document addProcessingInstruction(String target, String text); 61 62 73 Document addProcessingInstruction(String target, Map data); 74 75 87 Document addDocType(String name, String publicId, String systemId); 88 89 94 DocumentType getDocType(); 95 96 102 void setDocType(DocumentType docType); 103 104 110 EntityResolver getEntityResolver(); 111 112 119 void setEntityResolver(EntityResolver entityResolver); 120 121 141 String getXMLEncoding(); 142 143 151 void setXMLEncoding(String encoding); 152 } 153 154 190 | Popular Tags |