
X M L
A p p lic a t io n
S A X A P I
X M L P a r s e r
X M L
D o c u m e n t
Figure 3-3 SAX application components
To understand how an
Example 3-1 Sample XML document
<?xml version="1.0"
<name>Mary Smith</name> <membership>10001</membership>
</Customer>
An
Example 3-2 Sample event breakdown
start document
start element: Customer
start element: name
characters: Mary Smith
end element: name
start element: membership
characters: 10001
end element: membership
end element: Customer end document
Chapter 3. Processing XML 59