Methods in DOM Level 2 Core

name of object returns description
appendChild(newChild) Node Node
appendData(arg) CharacterData (none)
cloneNode(deep) Node Node Return a new copy of the node.
createAttribute(name) Document Attr
createAttributeNS(namespaceURI,qualifiedName) Document Attr
createCDATASection(data) Document CDATASection
createComment(data) Document Comment
createDocument(namespaceURI,qualifiedName,doctype) DOMImplementation Document
createDocumentFragment() Document DocumentFragment
createDocumentType(qualifiedName,publicId,systemId) DOMImplementation DocumentType
createElement(tagName) Document DocumentFragment
createElementNS(namespaceURI,qualifiedName) Document Element
createEntityReference(name) Document EntityReference
createProcessingInstruction(target,data) Document ProcessingInstruction
createTextNode([data]) Document Text Create a new Text node, with optional content.
deleteData(offset,count) CharacterData (none)
getAttribute(name) Element String
getAttributeNode(name) Element Attr
getAttributeNodeNS(namespaceURI,localName) Element Attr
getAttributeNS(namespaceURI,localName) Element String
getElementById(elementId) Document Element
getElementsByTagName(tagname) Document NodeList
getElementsByTagName(name) Element NodeList
getElementsByTagNameNS(namespaceURI,localName) Document NodeList
getElementsByTagNameNS(namespaceURI,localName) Element NodeList
getNamedItem(name) NamedNodeMap Node
getNamedItemNS(namespaceURI,localName) NamedNodeMap Node
hasAttribute(name) Element Boolean
hasAttributeNS(namespaceURI,localName) Element Boolean
hasAttributes() Node Boolean
hasChildNodes() Node Boolean
hasFeature(feature,version) DOMImplementation Boolean
importNode(importedNode,deep) Document Node Imports a node from another document to this document.
insertBefore(newChild,refChild) Node Node
insertData(offset,arg) CharacterData (none)
isSupported(feature,version) Node Boolean
item(index) NodeList Node
item(index) NamedNodeMap Node
normalize() Node (none)
removeAttribute(name) Element (none)
removeAttributeNode(oldAttr) Element Attr
removeAttributeNS(namespaceURI,localName) Element (none)
removeChild(oldChild) Node Node
removeNamedItem(name) NamedNodeMap Node
removeNamedItemNS(namespaceURI,localName) NamedNodeMap Node
replaceChild(newChild,oldChild) Node Node
replaceData(offset,count,arg) CharacterData (none)
setAttribute(name,value) Element (none)
setAttributeNode(newAttr) Element Attr
setAttributeNodeNS(newAttr) Element Attr
setAttributeNS(namespaceURI,qualifiedName,value) Element (none)
setNamedItem(arg) NamedNodeMap Node
setNamedItemNS(arg) NamedNodeMap Node
splitText(offset) Text Text
substringData(offset,count) CharacterData String