2.1.1.1 documentElement

documentElement of type DOMString

Contains the root element of the document.

The documentElement attribute is read/write. It returns an IXMLDOMElement that represents the single element that represents the root of the XML document tree. It returns Null if no root exists.

When setting the documentElement attribute, the specified element node is inserted into the child list of the document after any document type node. To precisely place the node within the children of the document, call the insertBefore method of the IXMLDOMNode.

The parentNode attribute is reset to the document node as a result of this operation.

Show: