The CXML-WRITE-FILE function writes the content of a XML document to file. After this operation, the CXML-RELEASE-PARSER op-code should be used to release the XML document from memory.
The indentation of elements in the generated XML is controlled by the configuration property iscobol.cxml.indent_number.