Description
Sets a PBDOM_DOCUMENT as parent of a PBDOM_ELEMENT object, making the PBDOM_ELEMENT object the root element.
Syntax
pbdom_element_name.SetDocument(pbdom_document pbdom_document_ref)
Argument |
Description |
---|---|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
pbdom_document_ref |
The PBDOM_DOCUMENT to be set as the owner document and parent of this PBDOM_ELEMENT object |
Return value
PBDOM_ELEMENT. The modified PBDOM_ELEMENT object.
Usage
The PBDOM_OBJECT referenced must be a PBDOM_DOCUMENT object. The PBDOM_ELEMENT object must not already have a parent object. If the target PBDOM_DOCUMENT already has a root element, the existing root element is replaced by the new PBDOM_ELEMENT object.