Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Contains the root element of the document.
Syntax
HRESULT get_documentElement( IDOMElement ** DOMElement);
Parameters
- DOMElement
- [out] IDOMElement object that represents the single element that represents the root of the XML document tree. Returns NULL if no root exists.
Contains the root element of the document.
Syntax
HRESULT put_documentElement( IDOMElement ** DOMElement);
Parameters
- DOMElement
- [out] IDOMElement object that represents the single element that represents the root of the XML document tree. Returns NULL if no root exists.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
When setting the documentElement property, 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 IDOMNode's insertBefore method.
The parentNode property is reset to the document node as a result of this operation.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.