Description
The PBDOM_TEXT class represents a DOM Text Node within an XML document. It extends the PBDOM_CHARACTERDATA class with a set of methods specifically intended for manipulating DOM text nodes.
The PBDOM_TEXT class is derived from the PBDOM_CHARACTERDATA class. PBDOM_TEXT objects are commonly used to represent the textual content of a PBDOM_ELEMENT or PBDOM_ATTRIBUTE.
Whitespace characters
The text in a PBDOM_TEXT object can include whitespace characters such as carriage returns, linefeeds, tabs, and spacebar spaces.
Methods
Some of the inherited methods from PBDOM_OBJECT serve no meaningful objective, and only default or trivial functionalities result. These are described in the following table:
Method |
Always returns |
---|---|
AddContent |
current PBDOM_TEXT |
GetContent |
false |
GetName |
a string "#text" |
HasChildren |
false |
InsertContent |
current PBDOM_TEXT |
IsAncestorObjectOf |
false |
RemoveContent |
false |
SetContent |
current PBDOM_TEXT |
SetName |
false |
PBDOM_TEXT has the following non-trivial methods: