The
error info record is placed in the parsed data stream whenever a parsing
error is detected. The offset to the error from the start of the document,
along with the return and reason code generated by the
z/OS XML parser when
the error was encountered, are kept in a field of the error info record.
Here is the structure of the record, including the record header:
Table 1. Error info record structure |
Fields |
+0 |
record type |
flags |
reserved |
+4 |
record length |
+8 |
return code |
+C |
reason code |
+10 |
offset of the
error from the start of the document |
+14 |
Note: The error info record is mapped out
in gxlhxeh.h for C/C++ callers, and GXLYXEH for assembler callers.
For information on error codes and how to use them, see Using return and reason codes.