Syntax:
CALL "C$XML" USING CXML-NEW-PARSER, handle
Parameters:
CXML-NEW-PARSER
|
Op-code 14. Numeric data item that specifies the operation to perform. Each operation is defined in
acucobol.def, which is included with your system.
|
On Exit:
RETURN-CODE
|
A parser handle for the XML document. You must pass this to CXML-WRITE-FILE and CXML-RELEASE-PARSER to free the file from
memory. See the example below.
|
Example:
01 parser-handle usage is handle.
COPY "acucobol.def".
procedure division.
main-logic.
*Create a new XML file
call "C$XML" using CXML-NEW-PARSER
move return-code to parser-handle.
*write the file
call "C$XML" using CXML-WRITE-FILE,
parser-handle
"custRec.xml".
*release the file from memory
call "C$XML" using CXML-RELEASE-PARSER,
parser-handle.