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

AddNamespaceDeclaration – PB Docs 2022 – PowerBuilder Library

AddNamespaceDeclaration – PB Docs 2022

AddNamespaceDeclaration

Description

Adds a new namespace declaration to this PBDOM_ELEMENT object. The
new namespace can apply to the PBDOM_ELEMENT object itself if the
namespace becomes the default namespace in the PBDOM_ELEMENT
object.

Syntax

Argument

Description

pbdom_element_name

The name of a PBDOM_ELEMENT object

strNamespacePrefix

The prefix of the new namespace to be
declared

strNamespaceUri

The URI of the new namespace to be
declared

Return value

PBDOM_ELEMENT. The modified PBDOM_ELEMENT object.

Throws

EXCEPTION_INVALID_ARGUMENT — If any of the input parameters is
invalid (null).

EXCEPTION_INVALID_NAME — If the input Prefix is invalid, as, for
example, if it contains a colon.

EXCEPTION_INVALID_STRING — If the input URI is invalid.

EXCEPTION_MEMORY_ALLOCATION_FAILURE — If memory allocation
failure occurred in this method.

Examples

Consider the following element:

Given a PBDOM_ELEMENT object elem_vehicle that represents the
Vehicle element, consider the following statement:

It transforms the Vehicle element as follows:

Vehicle, seats, color, engine, and capacity are all unqualified
(that is, they have no namespace prefix). Therefore, the vehicle_specs
namespace does not apply to any of them or their attributes or
subelements.

However, consider the following statement:

It transforms the Vehicle element as follows:

http://www.vehicle.com/specs is the default namespace and so
Vehicle, seats, color, engine, and capacity are all part of this
namespace. Note that the default namespace does not apply to the units
attribute.

See also

GetNamespacePrefix

GetNamespaceUri

GetQualifiedName

RemoveNamespaceDeclaration

SetNamespace


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