Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

The SAX event structure

The event structure is a structure consisting of 24 LIMITED ENTRY variables which point to functions that the parser will invoke for various "events".

The descriptions below of each event refer to the example of an XML document in Figure 43. In these descriptions, the term "XML text" refers to the string based on the pointer and length passed to the event.

Figure 43. Sample XML document
   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:

Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide