PreviousNextIndex

LOAD( ) method (Handle)

Loads an XML document into memory, parses it, and makes its contents available in ABL as an X-document object.

This method sets the ENCODING attribute for the XML document to the encoding name specified in the XML document’s encoding declaration.

Return type: LOGICAL

Applies to: X-document object handle

Syntax
LOAD( mode , { file |  memptr | longchar } , validate ) 

mode
file
memptr
longchar
validate

The following code fragment creates a parse tree of XML nodes and validates its structure:

DEFINE VARIABLE hDoc AS HANDLE NO-UNDO. 
CREATE X-DOCUMENT hDoc. 
hDoc:LOAD("file", "memo.xml", TRUE). 
. . . 

See also: ADD-SCHEMA-LOCATION( ) method, NONAMESPACE-SCHEMA-LOCATION attribute, SCHEMA-LOCATION attribute, SCHEMA-PATH attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex