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
mode
file
A character expression that represents the absolute or relative pathname of a new file created to save the XML text. If you specify a relative pathname, it is relative to the current working directory of the underlying operating system’s file system. If a file with the specified name already exists, the AVM verifies that the file is writeable and overwrites the file.stream
stream-handle
memptr
longchar
A LONGCHAR variable to contain the saved XML text in memory.If the LONGCHAR variable’s code page is fixed (that is, set using the FIX-CODEPAGE statement) and the fixed code page is not compatible with the encoding specified in the XML document’s ENCODING attribute, the SAVE( ) method returns an error and the XML document is not saved to the LONGCHAR.If the LONGCHAR variable’s code page is not fixed, the AVM converts from the XML document’s codepage to the -cpinternal code page and saves it to the LONGCHAR variable.The following code fragments demonstrate the use of the SAVE( ) method:
See also: ENCODING attribute
OpenEdge Release 10.2B
|