|
Hi Nathan
I believe that we don't tell the SAX parser where to go get the
information - it goes from start to end of the XML "document" and returns
to a call-out procedure with various events, like start of document, end of
element, stuff like that.
You don't invoke the parser repetitively - at least, not the SAX parser in
use with XML-SAX operation code.
A programmer has to know the structure ahead of time, in order to create
reasonable sets of procedures to process each event type. And you need to
keep track of where you are in the tree as the parser calls your procedure.
This IS a single pass - just lots of exits to the handling procedure you
specify.
Hope that makes sense and is even close to reality!!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.