PBDOM_CDATA – PB Docs 2022

PBDOM_CDATA

Description

The PBDOM_CDATA class represents an XML DOM CDATA section. The
PBDOM_CDATA class is derived from PBDOM_TEXT, which inherits from the
PBDOM_CHARACTERDATA class.

A PBDOM_CDATA object is used to hold text that contains characters
that are prohibited in text objects, such as “<” and “&”, without
using entity references. For example, consider the following PBDOM_CDATA
object:

A PBDOM_TEXT object with the same text content must be written like
this:

However, although the PBDOM_CDATA class is derived from PBDOM_TEXT,
a PBDOM_CDATA object cannot always be inserted in the same context as a
PBDOM_TEXT. For example, a PBDOM_TEXT object can be added as a child of a
PBDOM_ATTRIBUTE, but a PBDOM_CDATA object cannot.

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_CDATA

GetContent

false

GetName

a string “#cdata”

HasChildren

false

InsertContent

current PBDOM_CDATA

IsAncestorObjectOf

false

RemoveContent

false

SetContent

current PBDOM_CDATA

SetName

false

PBDOM_CDATA has the following non-trivial methods:

Append

Clone

Detach

Equals

GetObjectClass

GetObjectClassString

GetOwnerDocumentObject

GetParentObject

GetText

GetTextNormalize

GetTextTrim

SetParentObject

SetText


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x