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