com.google.gwt.xml.client.Document |
Document
objects represent XML documents. Each
Document
can contain exactly one Element
node,
and any number of other node types.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.xml.client.Node
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method creates a new
CDATASection . | |||||||||||
This method creates a new
Comment . | |||||||||||
This method creates a new
DocumentFragment . | |||||||||||
This method creates a new
Element . | |||||||||||
This method creates a new
ProcessingInstruction . | |||||||||||
This method creates a new
Text . | |||||||||||
This method retrieves the document element.
| |||||||||||
This method retrieves the unique descendent elements which has an id of
elementId . | |||||||||||
This method retrieves any descendent elements which have a tag name of
tagname . | |||||||||||
This method imports a node into the current
Document . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.xml.client.Node
|
This method creates a new CDATASection
.
data | the data of the new CDATASection |
---|
CDATASection
This method creates a new Comment
.
data | the data of the new Comment |
---|
Comment
This method creates a new DocumentFragment
.
DocumentFragment
This method creates a new Element
.
tagName | the tag name of the new Element |
---|
Element
This method creates a new ProcessingInstruction
.
target | the target of the new ProcessingInstruction |
---|---|
data | the data of the new ProcessingInstruction |
ProcessingInstruction
This method creates a new Text
.
data | the data of the new Text |
---|
Text
This method retrieves the document element. Each document has at most one
Element
as its direct child, and this node is returned if it
exists. null
is returned otherwise.
Document
This method retrieves the unique descendent elements which has an id of
elementId
. Note the attribute which is used as an ID must
be supplied in the DTD of the document. It is not sufficient to give the
Element
to be retrieved an attribute named 'id'.
Element
which has an id of
elementId
and belongs to this Document
This method retrieves any descendent elements which have a tag name of
tagname
.
NodeList
of elements which has a tag name of
tagname
and belong to this Document
This method imports a node into the current Document
.
deep | whether to recurse to children |
---|
Node
imported