The event structure is a structure consisting of 19 LIMITED ENTRY variables which point to functions that the parser will invoke for various "events".
All of these ENTRYs must use the OPTLINK linkage.
All of these ENTRYs will have a first (and sometimes the only) parameter: the user token passed by the program to PLISAXC.
The descriptions below of these 19 events will refer to the example of an XML document in Figure 94. 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>';
Depending on the contents of the XML documents, the parser may recognize the following events: