When using the C$XML routine, you should perform the following basic functions:
If an error occurs, you can also retrieve error information. If desired, you can retrieve element attributes or comments as well.
Each function is performed through C$XML operation codes (op-codes) as described in this section. Most C$XML operations return element handles. A separate handle is provided for each element. You should move the return codes to an ACUCOBOL-GT handle that you've declared in Working-Storage. The handle should be defined as USAGE IS HANDLE. You will refer to these handles when you move deeper into a record and retrieve or update specific data.
refer to C$XML Examples for sample code.