Document defines an XML Document.
| Modifier and Type | Method and Description |
|---|---|
| public Document | Returns: thisDocument instance.is the text for the comment)Comment node.Adds a new |
| public Document | Returns: thisDocument instance.is the name of the root element name, String is the PUBLIC URI publicId, String is the SYSTEM URI systemId)Adds a DOCTYPE declaration to this document |
| public Document | Returns: thisDocument instance.is the target of the processing instruction target, String is the textual data (key/value pairs) of the processing
instruction text)Adds a processing instruction for the given target |
| public Document | Returns: thisDocument instance.is the target of the processing instruction target, Map<String, String> is a Map of the key / value pairs of the processing
instruction data)Adds a processing instruction for the given target |
| public DocumentType | |
| public EntityResolver | Returns: the EntityResolver used to find resolve URIs such as for DTDs, or XML Schema documentsDOCUMENT ME! |
| public Element | Returns: the root element for this documentReturns the root |
| public String | Returns: The encoding of this document, as stated in the XML declaration, ornull if unknown.Return the encoding of this document, as part of the XML declaration This
is |
| public void | |
| public void | setEntityResolver(EntityResolver
DOCUMENT ME! entityResolver)Sets the EntityResolver used to find resolve URIs such as for DTDs, or XML Schema documents |
| public void | setRootElement(Element
the new root element for this document rootElement)Sets the root element for this document |
| public void | setXMLEncoding(String
the encoding of the document encoding)Sets the encoding of this document as it will appear in the XML declaration part of the document. |
| addComment | back to summary |
|---|---|
| public Document addComment(String comment) Adds a new | |
| addDocType | back to summary |
|---|---|
| public Document addDocType(String name, String publicId, String systemId) Adds a DOCTYPE declaration to this document | |
| addProcessingInstruction | back to summary |
|---|---|
| public Document addProcessingInstruction(String target, String text) Adds a processing instruction for the given target | |
| addProcessingInstruction | back to summary |
|---|---|
| public Document addProcessingInstruction(String target, Map<String, String> data) Adds a processing instruction for the given target | |
| getDocType | back to summary |
|---|---|
| public DocumentType getDocType() DOCUMENT ME!
| |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver getEntityResolver() DOCUMENT ME!
| |
| getRootElement | back to summary |
|---|---|
| public Element getRootElement() Returns the root
| |
| getXMLEncoding | back to summary |
|---|---|
| public String getXMLEncoding() Return the encoding of this document, as part of the XML declaration This
is
| |
| setDocType | back to summary |
|---|---|
| public void setDocType(DocumentType docType) Sets the DocumentType property
| |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver entityResolver) Sets the EntityResolver used to find resolve URIs such as for DTDs, or XML Schema documents
| |
| setRootElement | back to summary |
|---|---|
| public void setRootElement(Element rootElement) Sets the root element for this document
| |
| setXMLEncoding | back to summary |
|---|---|
| public void setXMLEncoding(String encoding) Sets the encoding of this document as it will appear in the XML declaration part of the document.
| |