Question

I'm looking for an XML library that writes out the XML stream as it goes. I've looked at TinyXML, pugixml, etc. and it seems these only write the stream when the entire DOM is built in memory. I want a library that will write each object as soon as all children and attributes are available. Is there such a thing?

Was it helpful?

Solution 2

I wrote my own library in the end. I'm willing to share the source if it's of interest to anyone - it's a little clunky and minimal though.

OTHER TIPS

The word you're looking for is SAX.

Xerces is one such C++ SAX library. If you're in the MS world then MSXML supports SAX2 too.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top