This statement has the following parameters:
| Parameter | Description | 
|---|---|
| DocumentPointer | An identifier of a COBOL pointer data item that points to an XML document stored in memory as a text string. | 
The XML FREE TEXT statement releases the COBOL memory referred to by the COBOL pointer data item specified by the DocumentPointer parameter, which should have a value that has been set by the XML EXPORT TEXT, XML TRANSFORM TEXT, or the XML GET TEXT statements.
XML FREE TEXT
    MY-POINTER
IF NOT XML-OK GO TO Z.