xml.dom.Document.getElementsByTagNameNS()

Document.getElementsByTagNameNS(namespaceURI, localName) Search for all descendants (direct children, children’s children, etc.) with a particular namespace URI and localname. The localname is the part of the namespace after the prefix.

xml.dom.Document.getElementsByTagName()

Document.getElementsByTagName(tagName) Search for all descendants (direct children, children’s children, etc.) with a particular element type name.

xml.dom.Document.documentElement

Document.documentElement The one and only root element of the document.

xml.dom.Document.createTextNode()

Document.createTextNode(data) Create and return a text node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.

xml.dom.Document.createProcessingInstruction()

Document.createProcessingInstruction(target, data) Create and return a processing instruction node containing the target and data passed as parameters. As with the other creation methods, this one does not insert the node into the tree.

xml.dom.Document.createElementNS()

Document.createElementNS(namespaceURI, tagName) Create and return a new element with a namespace. The tagName may have a prefix. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as insertBefore() or appendChild().

xml.dom.Document.createElement()

Document.createElement(tagName) Create and return a new element node. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as insertBefore() or appendChild().

xml.dom.Document.createComment()

Document.createComment(data) Create and return a comment node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.

xml.dom.Document.createAttributeNS()

Document.createAttributeNS(namespaceURI, qualifiedName) Create and return an attribute node with a namespace. The tagName may have a prefix. This method does not associate the attribute node with any particular element. You must use setAttributeNode() on the appropriate Element object to use the newly created attribute instance.

xml.dom.Document.createAttribute()

Document.createAttribute(name) Create and return an attribute node. This method does not associate the attribute node with any particular element. You must use setAttributeNode() on the appropriate Element object to use the newly created attribute instance.