Java Reference
In-Depth Information
Gets the node immediately following this node.
Returns null if no following sibling exists.
Level 1
nextSibling
Gets the name of this node.
Level 1
nodeName
An integer representing the type of this node.
See previous table.
Level 1
nodeType
Gets the value of this node, depending on the type.
Level 1
nodeValue
Gets the Document object this node is contained in.
If this node is a Document node, it returns null .
Level 1
ownerDocument
Gets the parent node of this node. Returns null for
nodes that are currently not in the DOM tree.
Level 1
parentNode
Returns the namespace prefix of this node, or null
if not specified.
Level 2
prefix
Gets the node immediately before this node.
Returns null if no previous sibling.
Level 1
previousSibling
Methods
MethOD NaMe
DesCrIptION
INtrODuCeD
Adds the newChild to the end of the list of
children.
Level 1
appendChild(newChild)
Returns a duplicate of the node. The returned
node has no parent. If deep is true , this clones
all nodes contained within the node.
Level 1
cloneNode(deep)
Returns a boolean value based on if the node has
any attributes (if the node is an element).
Level 2
hasAttributes()
Returns a boolean value based on whether the
node has any child nodes.
Level 1
hasChildNodes()
insertBefore(newChild,
refChild)
Inserts the newChild node before the existing
child referenced by refChild . If refChild is
null , newChild is added at the end of the list
of children.
Level 1
Removes the specified child node and returns it.
Level 1
removeChild(oldChild)
replaceChild(newChild,
oldChild)
Replaces oldChild with newChild and returns
oldChild .
Level 1
Search WWH ::




Custom Search