| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Node | adoptNode(Node
The node to move into this document. source)Implements org. |
| public Attr | createAttribute(String
The name of the attribute. name)Implements org. Attr of the given name.
|
| public Attr | createAttributeNS(String
The namespace URI of the attribute to create. namespaceURI, String The qualified name of the attribute to
instantiate. qualifiedName)Implements org. |
| public CDATASection | createCDATASection(String
The data for the data)CDATASection contents.Implements org. CDATASection node whose value is the specified
string.
|
| public Comment | createComment(String
The data for the node. data)Implements org. Comment node given the specified string.
|
| public DocumentFragment | createDocumentFragment()
Implements org. DocumentFragment object.
|
| public Element | createElement(String
The name of the element type to instantiate. For XML,
this is case-sensitive, otherwise it depends on the
case-sensitivity of the markup language in use. In that case, the
name is mapped to the canonical form of that markup by the DOM
implementation. tagName)Implements org. |
| public Element | createElementNS(String
The namespace URI of the element to create. namespaceURI, String The qualified name of the element type to
instantiate. qualifiedName)Implements org. |
| public EntityReference | createEntityReference(String
The name of the entity to reference.Unlike
name)Document.createElementNS or
Document.createAttributeNS, no namespace well-formed
checking is done on the entity name. Applications should invoke
Document.normalizeDocument() with the parameter "
namespaces" set to true in order to ensure that the
entity name is namespace well-formed.Implements org. EntityReference object.
|
| public ProcessingInstruction | createProcessingInstruction(String
The target part of the processing instruction.Unlike
target, String Document.createElementNS or
Document.createAttributeNS, no namespace well-formed
checking is done on the target name. Applications should invoke
Document.normalizeDocument() with the parameter "
namespaces" set to true in order to ensure that the
target name is namespace well-formed.The data for the node. data)Implements org. ProcessingInstruction node given the specified
name and data strings.
|
| public Text | createTextNode(String
The data for the node. data)Implements org. Text node given the specified string.
|
| public DocumentType | getDoctype()
Implements org. DocumentType)
associated with this document.
|
| public Element | getDocumentElement()
Implements org. |
| public String | getDocumentURI()
Implements org. null if undefined.
|
| public DOMConfiguration | getDomConfig()
Implements org. Document.normalizeDocument is
invoked.
|
| public Element | getElementById(String
The unique elementId)id value for an element.Implements org. Element that has an ID attribute with the
given value.
|
| public NodeList | getElementsByTagName(String
The name of the tag to match on. The special value "*"
matches all tags. For XML, the tagname)tagname parameter is
case-sensitive, otherwise it depends on the case-sensitivity of the
markup language in use.Implements org. NodeList of all the Elements in
document order with a given tag name and are contained in the
document.
|
| public NodeList | getElementsByTagNameNS(String
The namespace URI of the elements to match on. The
special value namespaceURI, String "*" matches all namespaces.The local name of the elements to match on. The
special value "*" matches all local names. localName)Implements org. NodeList of all the Elements with a
given local name and namespace URI in document order.
|
| public DOMImplementation | getImplementation()
Implements org. DOMImplementation object that handles this document.
|
| public String | getInputEncoding()
Implements org. |
| public String | getNodeName()
Overrides org. Implements org. |
| public boolean | getStrictErrorChecking()
Implements org. |
| public String | getXmlEncoding()
Implements org. |
| public boolean | getXmlStandalone()
Implements org. |
| public String | getXmlVersion()
Implements org. |
| public Node | importNode(Node
The node to import. importedNode, boolean If deep)true, recursively import the subtree under
the specified node; if false, import only the node
itself, as explained above. This has no effect on nodes that cannot
have any children, and on Attr, and
EntityReference nodes.Implements org. |
| public void | |
| public Node | renameNode(Node
The node to rename. n, String The new namespace URI. namespaceURI, String The new qualified name. name)Implements org. |
| public void | setDocumentURI(String documentURI)
Implements org. null if undefined.
|
| public void | setStrictErrorChecking(boolean strictErrorChecking)
Implements org. |
| public void | setXmlStandalone(boolean standalone)
Implements org. |
| public void | setXmlVersion(String version)
Implements org. |
| fDocumentURI | back to summary |
|---|---|
| private String fDocumentURI | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument() | |
| adoptNode | back to summary |
|---|---|
| public Node adoptNode(Node source) throws DOMException Implements org. DOM Level 3
| |
| createAttribute | back to summary |
|---|---|
| public Attr createAttribute(String name) throws DOMException Implements org. Doc from org. Creates an
| |
| createAttributeNS | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException Implements org. Doc from org. Creates an attribute of the given qualified name and namespace URI.
| |||||||||||||||
| createCDATASection | back to summary |
|---|---|
| public CDATASection createCDATASection(String data) throws DOMException Implements org. Doc from org. Creates a
| |
| createComment | back to summary |
|---|---|
| public Comment createComment(String data) Implements org. Doc from org. Creates a | |
| createDocumentFragment | back to summary |
|---|---|
| public DocumentFragment createDocumentFragment() Implements org. Doc from org. Creates an empty
| |
| createElement | back to summary |
|---|---|
| public Element createElement(String tagName) throws DOMException Implements org. Doc from org. Creates an element of the type specified. Note that the instance
returned implements the
| |
| createElementNS | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException Implements org. Doc from org. Creates an element of the given qualified name and namespace URI.
| |||||||||||||
| createEntityReference | back to summary |
|---|---|
| public EntityReference createEntityReference(String name) throws DOMException Implements org. Doc from org. Creates an Note If any descendant of the
| |
| createProcessingInstruction | back to summary |
|---|---|
| public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException Implements org. Doc from org. Creates a
| |
| createTextNode | back to summary |
|---|---|
| public Text createTextNode(String data) Implements org. Doc from org. Creates a | |
| getDoctype | back to summary |
|---|---|
| public DocumentType getDoctype() Implements org. Doc from org. The Document Type Declaration (see | |
| getDocumentElement | back to summary |
|---|---|
| public Element getDocumentElement() Implements org. Doc from org. This is a convenience attribute that allows direct access to the child node that is the document element of the document. | |
| getDocumentURI | back to summary |
|---|---|
| public String getDocumentURI() Implements org. The location of the document or
| |
| getDomConfig | back to summary |
|---|---|
| public DOMConfiguration getDomConfig() Implements org. The configuration used when
| |
| getElementById | back to summary |
|---|---|
| public Element getElementById(String elementId) Implements org. Doc from org. Returns the Note Attributes with the name "ID" or "id" are not of type ID unless so defined. | |
| getElementsByTagName | back to summary |
|---|---|
| public NodeList getElementsByTagName(String tagname) Implements org. Doc from org. Returns a | |
| getElementsByTagNameNS | back to summary |
|---|---|
| public NodeList getElementsByTagNameNS(String namespaceURI, String localName) Implements org. Doc from org. Returns a
| |
| getImplementation | back to summary |
|---|---|
| public DOMImplementation getImplementation() Implements org. Doc from org. The | |
| getInputEncoding | back to summary |
|---|---|
| public String getInputEncoding() Implements org. Doc from org. An attribute specifying the encoding used for this document at the time
of the parsing. This is | |
| getNodeName | back to summary |
|---|---|
| public String getNodeName() Overrides org. Implements org. Doc from org. The name of this node, depending on its type; see the table above. | |
| getStrictErrorChecking | back to summary |
|---|---|
| public boolean getStrictErrorChecking() Implements org. An attribute specifying whether errors checking is enforced or not.
When set to
| |
| getXmlEncoding | back to summary |
|---|---|
| public String getXmlEncoding() Implements org. public void setInputEncoding(String actualEncoding){ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported"); } | |
| getXmlStandalone | back to summary |
|---|---|
| public boolean getXmlStandalone() Implements org. An attribute specifying, as part of the XML declaration, whether this
document is standalone.
| |
| getXmlVersion | back to summary |
|---|---|
| public String getXmlVersion() Implements org. An attribute specifying, as part of the XML declaration, the version
number of this document. This is
| |
| importNode | back to summary |
|---|---|
| public Node importNode(Node importedNode, boolean deep) throws DOMException Implements org. Doc from org. Imports a node from another document to this document, without altering
or removing the source node from the original document; this method
creates a new copy of the source node. The returned node has no
parent; (
| |
| normalizeDocument | back to summary |
|---|---|
| public void normalizeDocument() Implements org. DOM Level 3 | |
| renameNode | back to summary |
|---|---|
| public Node renameNode(Node n, String namespaceURI, String name) throws DOMException Implements org. DOM Level 3
| |
| setDocumentURI | back to summary |
|---|---|
| public void setDocumentURI(String documentURI) Implements org. The location of the document or
| |
| setStrictErrorChecking | back to summary |
|---|---|
| public void setStrictErrorChecking(boolean strictErrorChecking) Implements org. An attribute specifying whether errors checking is enforced or not.
When set to
| |
| setXmlStandalone | back to summary |
|---|---|
| public void setXmlStandalone(boolean standalone) Implements org. An attribute specifying, as part of the XML declaration, whether this
document is standalone.
| |
| setXmlVersion | back to summary |
|---|---|
| public void setXmlVersion(String version) throws DOMException Implements org. An attribute specifying, as part of the XML declaration, the version
number of this document. This is
| |