ADELIA |
VADELIA |
SADELIA |
WADELIA |
MADELIA |
(I/B) |
(I/B) (C/S) |
(B) (S) |
(I/B) (C/S) |
(I) (C/S) |
Section for use
All.
Syntax
XML_CLOSE XmlIdentifierXml Encoding
Encoding |
→ |
*FILE_ENCODING(<alpha cst> | <alpha variable>) | None |
Description
In read mode, the XML document is unloaded from memory.
In write or read/write mode, the XML document is saved in the file or IMAGE variable specified when it was opened, and is then unloaded from memory.
If the Encoding parameter is specified, the file is saved using the encoding system set in the alphanumerical variable or constant.
When this instruction is executed, the *RETURN_CODE reserved word can take the following values:
0 (*NORMAL) |
Document closed successfully. |
9 |
Validation error involving the dtd definition. |
11 |
Error while saving the file. |
13 |
Error: XML identifier not open. |
21 |
Error: the schema file specified in the XML file could not be found or is incorrect. |
22 |
Validating the XML file based on its schema generated errors. |
Example
XML_OPEN Xml1 *READ_WRITE 'C:\temp\MyFile.xml'
...
XML_CLOSE Xml1