Document processing statements are used to process, manipulate, or validate XML documents. They are grouped by function as
follows:
-
Export statements.
XML EXPORT FILE and
XML EXPORT TEXT are available to convert the content of a COBOL data item to an XML document that may be represented as an external file
or an internal text string.
-
Import statements.
XML IMPORT FILE and
XML IMPORT TEXT are available to convert the content of an XML document-either an external file or an internal text string-to a COBOL data
item.
-
Test and validation statements.
XML TEST WELLFORMED-FILE,
XML TEST WELLFORMED-TEXT,
XML VALIDATE FILE, and
XML VALIDATE TEXT are available to verify that an XML document-either an external file or an internal text string-is well-formed or valid with
respect to a specified schema.
- Transformation statement. Lastly,
XML TRANSFORM FILE transforms an XML document in an external file into a new external file by applying an XSLT stylesheet. The resulting file
may have almost any form, including XML, HTML, PDF, RTF, and so forth.