This statement has the following parameters:
|A nonnumeric literal or an identifier of an alphanumeric data item, the value of which is the file name of the file containing the XML document to be tested.
The XML TEST WELLFORMED-FILE statement tests the XML document specified by the DocumentName parameter to see if it is well-formed. A well-formed XML document is one that conforms to XML syntax rules, but is not necessarily valid with respect to any schema. See XML VALIDATE FILE and XML VALIDATE TEXT for testing whether a document is valid with respect to a schema.
A status value is returned in the XML-data-group data item, which is defined in the copybook, lixmldef.cpy.
XML TEST WELLFORMED-FILE "MY-DOCUMENT". IF NOT XML-OK GO TO Z.