Exchanges the current node (in the document tree) with a different node passed as a parameter. The other node object can be created anew, or it can
Removes a child node from the current element. The parameter must be a reference to an existing child node nested inside the current element. On
Returns a reference to the next outermost node (usually an element) that acts as a container to the current node in the document tree. The relations
Returns a reference to the document object that contains the current node. Potentially helpful for functions that act on object references retriev
Collapses all sibling text nodes of the current (element) node into a single text node. Invoking this method may be needed after inserting or re
Returns an integer that corresponds to a node type as specified in the W3C DOM. This is the preferred property to use to test a node object for its ty
Returns a string that identifies the name of the node as influenced by the node type. For element and attribute node types, the property returns the
Return a reference to the next or previous node (respectively) in the document tree at the same nested level as the current node. If there is no nod
These three properties apply primarily to XML document elements with tags that are defined with the help of XML namespaces. A simplified example of
Returns a Boolean true if the current node supports (i.e., conforms to the required specifications of) a stated W3C DOM module and version. Wh
Inserts a node as a child of the current node (usually the current node is an element) before one of the other child nodes of the current node.
Returns a Boolean value true if the current node contains one or more child nodes.
Returns a Boolean value true if the current Node element has an attribute whose name matches the method parameter.
Return a reference to the first or last child node of the current element node. These child nodes are text nodes nested inside an element.