GetRootElement

Description

Retrieves the root element of the current XML DOM document.

Syntax

pbdom_document_name.GetRootElement()

Argument

Description

pbdom_document_name

The name of a PBDOM_DOCUMENT object


Return value

PBDOM_ELEMENT. The root element of the PBDOM_DOCUMENT object housed in a PBDOM_ELEMENT object.

Throws

EXCEPTION_MEMORY_ALLOCATION_FAILURE -- Insufficient memory was encountered while executing this method.

Usage

The return value is the root element encapsulated in a PBDOM_ELEMENT object.

See also

DetachRootElement

HasRootElement

SetRootElement