GetText

Description

Obtains a concatenation of the text values of all the PBDOM_TEXT and PBDOM_CDATA nodes contained within the PBDOM_ELEMENT object from which the method is invoked.

Syntax

pbdom_element_name.GetText()

Argument

Description

pbdom_element_name

The name of a PBDOM_ELEMENT object


Return value

String

Examples

The GetText method is invoked for the abc PBDOM_ELEMENT object:

<abc>Root Element Data<data>ABC Data </data> now with extra info</abc>

The GetText method returns the following string:

Root Element Data now with extra info

The text "ABC Data" is excluded because it is not contained within the PBDOM_ELEMENT abc.

See also

GetTextNormalize

GetTextTrim

SetText