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

BuildFromFile – PB Docs 2019 – PowerBuilder Library

BuildFromFile – PB Docs 2019

BuildFromFile

Description

Builds a PBDOM_DOCUMENT from the file pointed to by the input URL
string. The URL can be a local file path.

Syntax

Argument

Description

pbdom_builder_name

The name of a PBDOM_BUILDER object

strURL

A string that indicates the URL of the file from
which to build a PBDOM_DOCUMENT

Return value

PBDOM_DOCUMENT.

Throws

EXCEPTION_MEMORY_ALLOCATION_FAILURE — If there is insufficient
memory to create a PBDOM_DOCUMENT object.

Examples

Suppose the file c:pbdom_doc_1.xml contains the following XML
string:

The file contains a Document Type Declaration that indicates that
<abc> is the root element, and a declaration for the text entity
that expands to “Some Text”:

The root element abc contains a child element data, which contains
five child PBDOM_OBJECTs: two PBDOM_ELEMENT objects, and PBDOM_TEXT,
PBDOM_COMMENT, and PBDOM_CDATA objects.

The first child_data element contains a PBDOM_TEXT with the string
“Child Data Text”. The second child_data element contains no child
PBDOM_OBJECTs but it does contain a PBDOM_ATTRIBUTE, An_Attribute, that
contains the value “Some Attribute Value”.

This example creates a PBDOM_DOCUMENT called pbdom_doc from
c:pbdom_doc_1.xml, tests the content of pbdom_doc, then saves the DOM
tree contained within pbdom_doc into a separate file,
c:pbdom_doc_2.xml. The input and output files should be
identical.

Usage

The input URL string can be a local file path.

The encoding specified in the XML export template determines the
encoding of the document created using BuildFromFile.

See also

BuildFromDataStore

BuildFromString


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