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

Detach – PB Docs 2019 – PowerBuilder Library

Detach – PB Docs 2019

Detach

Description

Detaches a PBDOM_ATTRIBUTE from its owner PBDOM_OBJECT, a
PBDOM_ELEMENT.

Syntax

Argument

Description

pbdom_attribute_name

The name of the PBDOM_ATTRIBUTE

Return value

PBDOM_OBJECT. The PBDOM_ATTRIBUTE object detached from its owner
object.

Throws

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE — This PBDOM_ATTRIBUTE
object’s internal implementation is null. The occurrence of this
exception is rare but can take place if severe memory corruption
occurs.

Examples

The Detach method can be used to manipulate an XML document as
follows:

Here, the PBDOM_Builder BuildFromString method is used to create
the following PBDOM_DOCUMENT object, pbdom_doc, using an XML
string:

The GetAttribute method is used to obtain the attribute from the
root element of pbdom_doc. This value is assigned to the PBDOM_ATTRIBUTE
object pbdom_attr. The pbdom_attr object is detached from its parent
element, and the data element is obtained from pbdom_doc using the
GetChildElement method. The data element is then assigned to the
PBDOM_ELEMENT object pbdom_elem. The attribute assigned to pbdom_attr is
assigned to pbdom_elem, yielding the following modified
pbdom_doc:

Usage

If the PBDOM_ATTRIBUTE object has no owner PBDOM_ELEMENT, the
Detach method does nothing.


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