NewDocument Syntax 1 – PB Docs 126

PBDOM_DOCUMENT:

NewDocument Syntax 1 method

Description

Creates a new XML DOM document from scratch.

Syntax

Argument

Description

pbdom_document_name

The name of a PBDOM_DOCUMENT
object

strRootElementName

The name of the root element to be contained
in the DOM document

Return Values

Boolean. Returns true if
a new document is successfully created and false otherwise.

Throws

EXCEPTION_INVALID_ARGUMENT – The
input string is invalid, which can occur if the string was set to null by
means of the PowerScript SetNull method.

EXCEPTION_MEMORY_ALLOCATION_FAILURE – Insufficient
memory was encountered while executing this method.

Usage

The parameter strRootElementName becomes
the name of the root element.

See Also


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