Communication between the parser and the user routine is handled through four special registers:
- XML-CODE to determine the status of the XML parsing.
- XML-EVENT to receive the name of each XML event; for example, START-OF-DOCUMENT.
- XML-TEXT to receive XML document fragments from an alphanumeric document.
- XML-NTEXT to receive XML document fragments from a national document.