Package | Description |
---|---|
org.w3c.dom |
The org.w3c.dom package provides the Java ME DOM API defined by
JSR 280.
|
org.w3c.dom.events |
The org.w3c.dom.events package provides the Java ME DOM Events API subset
defined by JSR 280.
|
Modifier and Type | Method and Description |
---|---|
Node |
Document.adoptNode(Node source)
Attempts to adopt a node from another document to this document.
|
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 an XML
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.
|
java.lang.String |
Node.getTextContent()
This attribute returns the text content of this node and its
descendants.
|
Node |
Document.importNode(Node importedNode,
boolean deep)
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.
|
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.If a default
value for the removed attribute is defined in the DTD, a new
attribute immediately appears with the default value as well as the
corresponding namespace URI, local name, and prefix when applicable.
|
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.
|
void |
Element.setIdAttribute(java.lang.String name,
boolean isId)
If the parameter
isId is true , this method
declares the specified attribute to be a user-determined ID attribute
. |
void |
Element.setIdAttributeNode(Attr idAttr,
boolean isId)
If the parameter
isId is true , this method
declares the specified attribute to be a user-determined ID attribute
. |
void |
Element.setIdAttributeNS(java.lang.String namespaceURI,
java.lang.String localName,
boolean isId)
If the parameter
isId is true , this method
declares the specified attribute to be a user-determined ID attribute
. |
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 |
Node.setTextContent(java.lang.String textContent)
This attribute returns the text content of this node and its
descendants.
|
void |
Attr.setValue(java.lang.String value)
Sets the value of this attribute.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Event |
DocumentEvent.createEvent(java.lang.String eventType)
Create an Event.
|
boolean |
EventTarget.dispatchEvent(Event evt)
This method allows the dispatch of events into the implementation's
event model.
|
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.