The event structure is a structure consisting of 24 LIMITED ENTRY variables which point to functions that the parser will invoke for various "events".
All these ENTRYs must use the OPTLINK linkage.
The descriptions below of each event refer to the example of an XML document in Figure 88. In these descriptions, the term "XML text" refers to the string based on the pointer and length passed to the event.
xmlDocument =
'<?xml version="1.0" standalone="yes"?>'
|| '<!--This document is just an example-->'
|| '<sandwich>'
|| '<bread type="baker"s best"/>'
|| '<?spread please use real mayonnaise ?>'
|| '<meat>Ham & turkey</meat>'
|| '<filling>Cheese, lettuce, tomato, etc.</filling>'
|| '<![CDATA[We should add a <relish> element in future!]]>'
|| '</sandwich>'
|| 'junk';
In the order of their appearance in this structure, the parser may recognize the following events: