Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2007-07-13 15:46:35

Aaron W. LaFramboise wrote:
> What about SAX API? In the past, most of the time when I wanted to
> parse XML, I've actually wanted something closer to SAX, not DOM.
> (However, I don't think SAX is really appropriate for C++, because of
> the way it eats control flow. You can't, for example, pause a SAX parse
> mid-parse, exit the SAX context, and come back to it later. SAX, in
> essence, either dominates your application's control flow, unacceptable
> in GUI, or requires multithreading.)
> A stream-based XML reader would be even more welcome to me than the
> DOM-based API. One could also argue that stream-based processing is
> more in the tradition of C++. Full validation would also be a major
> plus, as most stream-based XML readers don't completely validate.

I agree, and the sandbox xml project does in fact contain some (rudimentary)
XMLReader API.


      ...ich hab' noch einen Koffer in Berlin...

Boost list run by bdawes at, gregod at, cpdaniel at, john at