Progress
Language Reference


CREATE X-DOCUMENT Statement

Interfaces
OS
SpeedScript
All
All
Yes

Creates a handle for an XML document object. To use the XML document, you must add new nodes using the CREATE-NODE( ) method, the CREATE-NODE-NAMESPACE( ) method, or populate the document from an existing file using the LOAD( ) method.

NOTE: To ensure consistency across all nodes in an XML document, use either the CREATE-NODE-NAMESPACE( ) method or the CREATE-NODE( ) method to build an XML document; do not use both methods within a single document.

SYNTAX

CREATE X-DOCUMENT handle 

handle

A valid X-DOCUMENT handle to use for the new XML document.

EXAMPLE

The following code fragment depicts creating an XML document object:

DEFINE VARIABLE hXdoc AS HANDLE.
. . .
CREATE X-DOCUMENT hXdoc.
. . . 

SEE ALSO

CREATE X-NODEREF Statement, DELETE OBJECT Statement, X-document Object Handle, X-noderef Object Handle


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095