Java Reference
In-Depth Information
(continued)
MethOD NaMe
DesCrIptION
INtrODuCeD
Returns a new Comment object
with the specified data.
Level 1
createComment(data)
Returns a new CDATASection
object whose value is the
specified data.
Level 1
createCDATASection(data)
Returns an empty
DocumentFragment object.
Level 1
createDocumentFragment()
Returns a new Element object
with the specified tag name.
Level 1
createElement(tagName)
createElementNS(namespaceURI,
qualifiedName)
Returns an element of the
specified qualified name and
namespace URI. Not for HTML
DOMs.
Level 2
Returns a new Text object
containing the specified text.
Level 1
createTextNode(text)
Returns the Element with the
specified ID value. Returns null
if the element does not exist.
Level 2
getElementById(elementId)
Returns a NodeList of all
Element objects with the
specified tag name in the order
in which they appear in the
DOM tree.
Level 1
getElementsByTagName(tagName)
getElementsByTagNameNS(namespaceURI,
localName)
Returns a NodeList of all
elements with the specified
local name and namespace URI.
Elements returned are in the
order they appear in the DOM.
Level 2
Imports a node from another
document. The source node
is not altered or removed from
its document. A copy of the
source is created. If deep is
true , all child nodes of the
imported node are imported.
If false , only the node is
imported.
Level 2
importNode(importedNode, deep)
Search WWH ::




Custom Search