Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetContent – PB Docs 150 – PowerBuilder Library

GetContent – PB Docs 150

PBDOM_DOCUMENT:

GetContent method

Description

Returns
all child content of the current PBDOM_DOCUMENT object.

Syntax

Argument

Description

pbdom_document_name

The name of a PBDOM_DOCUMENT
object

pbdom_object_array

The referenced name of an array of PBDOM_OBJECTs
that
receives PBDOM_OBJECTs

Return Values

Boolean. Returns true for
success and false for failure.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE – This PBDOM_OBJECT
object is not associated with a derived PBDOM_OBJECT class
object.

Examples

Assume a PBDOM_DOCUMENT object called pbdom_doc contains
the following XML document.

In the following PowerScript code fragment, the array pbdom_obj_array contains
just one PBDOM_ELEMENT which represents the element Root: pbdom_obj_array[1] - <Root>:

The call to GetRootElement in the last
line of the previous code fragment yields an array that contains:

The returned PBDOM_OBJECT array can be manipulated.
For example, the following statement causes Element_2 to
contain the Text node “Element 2 Text”:

After this call, the tree is as follows:

Usage

The returned array is passed by reference, with items in the
same order in which they appear in the PBDOM_DOCUMENT object.
Any changes to any item of the array affect the actual item to which
it refers.

See Also


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