| Package | Description |
|---|---|
| org.w3c.dom |
| Modifier and Type | Method and Description |
|---|---|
Node |
Node.appendChild(Node newChild)
Adds the node
newChild to the end of the list of children
of this node. |
void |
CharacterData.appendData(java.lang.String arg)
Append the string to the end of the character data of the node.
|
Attr |
Document.createAttribute(java.lang.String name)
Creates an
Attr of the given name. |
Attr |
Document.createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates an attribute of the given qualified name and namespace URI.
|
CDATASection |
Document.createCDATASection(java.lang.String data)
Creates a
CDATASection node whose value is the specified
string. |
Document |
DOMImplementation.createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
DocumentType doctype)
Creates a DOM Document object of the specified type with its document
element.
|
DocumentType |
DOMImplementation.createDocumentType(java.lang.String qualifiedName,
java.lang.String publicId,
java.lang.String systemId)
Creates an empty
DocumentType node. |
Element |
Document.createElement(java.lang.String tagName)
Creates an element of the type specified.
|
Element |
Document.createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates an element of the given qualified name and namespace URI.
|
EntityReference |
Document.createEntityReference(java.lang.String name)
Creates an
EntityReference object. |
ProcessingInstruction |
Document.createProcessingInstruction(java.lang.String target,
java.lang.String data)
Creates a
ProcessingInstruction node given the specified
name and data strings. |
void |
CharacterData.deleteData(int offset,
int count)
Remove a range of 16-bit units from the node.
|
java.lang.String |
CharacterData.getData()
The character data of the node that implements this interface.
|
java.lang.String |
Node.getNodeValue()
The value of this node, depending on its type; see the table above.
|
Node |
Document.importNode(Node importedNode,
boolean deep)
Imports a node from another document to this document.
|
Node |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node
newChild before the existing child node
refChild. |
void |
CharacterData.insertData(int offset,
java.lang.String arg)
Insert a string at the specified 16-bit unit offset.
|
void |
Element.removeAttribute(java.lang.String name)
Removes an attribute by name.
|
Attr |
Element.removeAttributeNode(Attr oldAttr)
Removes the specified attribute node.
|
void |
Element.removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes an attribute by local name and namespace URI.
|
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by
oldChild from the list
of children, and returns it. |
Node |
NamedNodeMap.removeNamedItem(java.lang.String name)
Removes a node specified by name.
|
Node |
NamedNodeMap.removeNamedItemNS(java.lang.String namespaceURI,
java.lang.String localName)
Removes a node specified by local name and namespace URI.
|
Node |
Node.replaceChild(Node newChild,
Node oldChild)
Replaces the child node
oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
CharacterData.replaceData(int offset,
int count,
java.lang.String arg)
Replace the characters starting at the specified 16-bit unit offset
with the specified string.
|
void |
Element.setAttribute(java.lang.String name,
java.lang.String value)
Adds a new attribute.
|
Attr |
Element.setAttributeNode(Attr newAttr)
Adds a new attribute node.
|
Attr |
Element.setAttributeNodeNS(Attr newAttr)
Adds a new attribute.
|
void |
Element.setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
Adds a new attribute.
|
void |
ProcessingInstruction.setData(java.lang.String data)
The content of this processing instruction.
|
void |
CharacterData.setData(java.lang.String data)
The character data of the node that implements this interface.
|
Node |
NamedNodeMap.setNamedItem(Node arg)
Adds a node using its
nodeName attribute. |
Node |
NamedNodeMap.setNamedItemNS(Node arg)
Adds a node using its
namespaceURI and
localName. |
void |
Node.setNodeValue(java.lang.String nodeValue)
The value of this node, depending on its type; see the table above.
|
void |
Node.setPrefix(java.lang.String prefix)
The namespace prefix of this node, or
null if it is
unspecified. |
void |
Attr.setValue(java.lang.String value)
On retrieval, the value of the attribute is returned as a string.
|
Text |
Text.splitText(int offset)
Breaks this node into two nodes at the specified
offset,
keeping both in the tree as siblings. |
java.lang.String |
CharacterData.substringData(int offset,
int count)
Extracts a range of data from the node.
|