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

AddContent Syntax 1 – PB Docs 126 – PowerBuilder Library

AddContent Syntax 1 – PB Docs 126

PBDOM_ELEMENT:

AddContent Syntax 1 method

Description

Adds a new PBDOM_OBJECT into a PBDOM_ELEMENT
object. The added PBDOM_OBJECT becomes a child of the PBDOM_ELEMENT
object.

Syntax

Argument

Description

pbdom_element_name

The name of a PBDOM_ELEMENT
object

pbdom_object_ref

The PBDOM_OBJECT to add

Return Values

PBDOM_OBJECT. The PBDOM_ELEMENT object modified
and returned as a PBDOM_OBJECT.

Throws

EXCEPTION_INAPPROPRIATE_USE_OF_PBDOM_OBJECT – If
an invalid PBDOM_OBJECT is added. See description section
below on the valid PBDOM_OBJECTs that can be added to a
PBDOM_ELEMENT object. This exception is also thrown if
the input PBDOM_OBJECT is this PBDOM_ELEMENT object
itself.

EXCEPTION_USE_OF_UNNAMED_PBDOM_OBJECT – If
the input PBDOM_OBJECT has not been given a user-defined
name.

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE – If
the input PBDOM_OBJECT is not associated with a derived
PBDOM_OBJECT.

EXCEPTION_PBDOM_OBJECT_ALREADY_HAS_PARENT – If
the input PBDOM_OBJECT already has a parent PBDOM_OBJECT.

EXCEPTION_HIERARCHY_ERROR – If
adding the input PBDOM_OBJECT will cause the current PBDOM_ELEMENT
object to be no longer well–formed.

Examples

The AddContent method is invoked
for the Element_2 PBDOM_ELEMENT object
in the following XML fragment:

The AddContent is invoked from the following
PowerScript code, where pbdom_elem_2 represents
the Element_2 object:

The following XML fragment results:

Usage

Only the following PBDOM_OBJECT types can be validly
added to a PBDOM_ELEMENT object:

  • PBDOM_ELEMENT

  • PBDOM_CDATA

  • PBDOM_COMMENT

  • PBDOM_ENTITYREFERENCE

  • PBDOM_PROCESSINGINSTRUCTION

  • PBDOM_TEXT

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