GetName

Description

The GetName method allows you to obtain the name of the current PBDOM_CHARACTERDATA.

Syntax

pbdom_chardata_name.GetName()

Argument

Description

pbdom_chardata_name

The name of a PBDOM_CHARACTERDATA object


Return value

String.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE -- If this PBDOM_CHARACTERDATA is not a reference to an object derived from PBDOM_CHARACTERDATA.

Usage

The returned string depends on the specific type of DOM object that is contained within PBDOM_CHARACTERDATA.

Note

A PBDOM_CHARACTERDATA is abstract and is not to be instantiated into an object of its own. Thus, there is no name returned as "#characterdata".

The following table lists the return values based on the type of DOM Object contained within PBDOM_CHARACTERDATA.

DOM Object

Return Value

PBDOM_CDATA

"#cdata-section"

PBDOM_COMMENT

"#comment"

PBDOM_TEXT

"#text"