com.google.gwt.xml.client.Node |
![]() |
This is the base interface for DOM nodes, as obtained from using
XMLParser
methods. Methods for iterating over and accessing
values from nodes are supplied here.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short | ATTRIBUTE_NODE | The constant 2 denotes DOM nodes of type Attribute. | |||||||||
short | CDATA_SECTION_NODE | The constant 4 denotes DOM nodes of type CdataSection. | |||||||||
short | COMMENT_NODE | The constant 8 denotes DOM nodes of type Comment. | |||||||||
short | DOCUMENT_FRAGMENT_NODE | The constant 11 denotes DOM nodes of type DocumentFragment. | |||||||||
short | DOCUMENT_NODE | The constant 9 denotes DOM nodes of type Document. | |||||||||
short | DOCUMENT_TYPE_NODE | The constant 10 denotes DOM nodes of type DocumentType. | |||||||||
short | ELEMENT_NODE | The constant 1 denotes DOM nodes of type Element. | |||||||||
short | ENTITY_NODE | The constant 6 denotes DOM nodes of type Entity. | |||||||||
short | ENTITY_REFERENCE_NODE | The constant 5 denotes DOM nodes of type EntityReference. | |||||||||
short | NOTATION_NODE | The constant 12 denotes DOM nodes of type Notation. | |||||||||
short | PROCESSING_INSTRUCTION_NODE | The constant 7 denotes DOM nodes of type ProcessingInstruction. | |||||||||
short | TEXT_NODE | The constant 3 denotes DOM nodes of type Text. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method appends child
newChild . | |||||||||||
This method copies this
Node . | |||||||||||
This method retrieves the attributes.
| |||||||||||
This method retrieves the child nodes.
| |||||||||||
This method retrieves the first child.
| |||||||||||
This method retrieves the last child.
| |||||||||||
This method retrieves the namespace URI.
| |||||||||||
This method retrieves the next sibling.
| |||||||||||
This method retrieves the name.
| |||||||||||
This method retrieves the type.
| |||||||||||
This method retrieves the value.
| |||||||||||
This method retrieves the owner document.
| |||||||||||
This method retrieves the parent.
| |||||||||||
This method retrieves the prefix.
| |||||||||||
This method retrieves the previous sibling.
| |||||||||||
This method determines whether this
Node has any attributes. | |||||||||||
This method determines whether this
Node has any child
nodes. | |||||||||||
This method inserts before
newChild . | |||||||||||
This method may collapse adjacent text nodes into one text node, depending
on the implementation.
| |||||||||||
This method removes child
oldChild . | |||||||||||
This method replaces the child
oldChild with
newChild . | |||||||||||
This method sets the value to
nodeValue . |
The constant 2 denotes DOM nodes of type Attribute.
The constant 4 denotes DOM nodes of type CdataSection.
The constant 8 denotes DOM nodes of type Comment.
The constant 11 denotes DOM nodes of type DocumentFragment.
The constant 9 denotes DOM nodes of type Document.
The constant 10 denotes DOM nodes of type DocumentType.
The constant 1 denotes DOM nodes of type Element.
The constant 6 denotes DOM nodes of type Entity.
The constant 5 denotes DOM nodes of type EntityReference.
The constant 12 denotes DOM nodes of type Notation.
The constant 7 denotes DOM nodes of type ProcessingInstruction.
The constant 3 denotes DOM nodes of type Text.
This method appends child newChild
.
newChild | the Node to be added |
---|
Node
appended
This method copies this Node
.
deep | whether to recurse to children |
---|
Node
cloned
This method retrieves the attributes.
Node
This method retrieves the child nodes.
Node
This method retrieves the first child.
Node
This method retrieves the last child.
Node
This method retrieves the namespace URI.
Node
This method retrieves the next sibling.
Node
This method retrieves the type.
Node
This method retrieves the value.
Node
This method retrieves the owner document.
Node
This method retrieves the parent.
Node
This method retrieves the prefix.
Node
This method retrieves the previous sibling.
Node
This method determines whether this Node
has any attributes.
true
if this Node
has any attributes
This method determines whether this Node
has any child
nodes.
true
if this Node
has any child nodes
This method inserts before newChild
.
newChild | the Node to be added |
---|---|
refChild | the Node which determines the position to
insert |
Node
inserted
This method may collapse adjacent text nodes into one text node, depending on the implementation. Safari 4.0 and Chrome will also merge CDATA nodes into text nodes, even though they support CDATA nodes as distinct nodes.
This method removes child oldChild
.
oldChild | the Node to be removed |
---|
Node
removed
This method replaces the child oldChild
with
newChild
.
newChild | the Node to be added |
---|---|
oldChild | the Node to be removed |
Node
replaced
This method sets the value to nodeValue
.
nodeValue | the new value |
---|