
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. Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin...