[
next
] [
tail
] [
up
]
4.1
Background
A
stream model
for XML parsers--the parser sees a sequence of elements
An
event
is declared when an element is encountered
A code segment, called the
event handler
, is executed when an event occurs
A program consists of handlers
registered
with a parser
SAX
is an interface supporting this approach
<line
.../>
<rect
.../>
<circle
.../>
Parser: raise an event on
<line .../>
Event handler: handle the event due to
<line .../>
Parser: raise an event on
<rect .../>
Event handler: handle the event due to
<rect .../>
...
intro by Eric Armstrong
[
next
] [
front
] [
up
]