PreviousNextIndex

SAVE( ) method

Saves or sends an XML document as text generated from an X-document object.

Return type: LOGICAL

Applies to: X-document object handle

Syntax
SAVE( mode , { file | stream | stream-handle | memptr| longchar } ) 

mode
file
stream
stream-handle
memptr
longchar

The following code fragments demonstrate the use of the SAVE( ) method:

/* Saves the current tree under hDoc as memo.xml. */ 
DEFINE STREAM mystream. 
OUTPUT STREAM mystream to memo.xml. 
hdoc:SAVE("stream","mystream"). 
OR 
/* Saves the current tree under hDoc as memo.xml. */ 
hdoc:SAVE("file","memo.xml"). 
OR 
/* Saves the current tree under hDoc in memory referred to by mymem. */ 
DEFINE VARIABLE hDoc  AS HANDLE NO-UNDO. 
DEFINE VARIABLE mymem AS MEMPTR NO-UNDO. 
. . . 
hDoc:SAVE("memptr", mymem). 

See also: ENCODING attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex