This program first writes (or exports) an XML document file from the content of a COBOL data item. Then the program reads (or imports) the same XML document and places the content in the same COBOL data item.
This example uses the following XML statements:
- XML INITIALIZE, which initializes or opens a session with XML Extensions.
- XML EXPORT FILE, which constructs an XML document (as a file) from the content of a COBOL data item.
- XML IMPORT FILE, which reads an XML document (from a file) into a COBOL data item.
- XML TERMINATE, which terminates or closes the session with XML Extensions.