Retrieving Errors

If a return code from any other operation is "0" or "1", a call to C$XML has failed. To retrieve error information, call the CXML-GET-LAST-ERROR op-code. For example:

77 errors-storage PIC x(60).
77 errors-value PIC x(70).
.
.
.
CALL "C$XML" using CXML-GET-LAST-ERROR error-storage.
move "Err No:" to error-value(1:).
move return-code to errors-value(9:).
move errors-storage to errors-value(20:).
display message " " errors-value.

General Syntax and Library List lists all of the error codes that can be returned by this library routine.