TinyXML2 (https://github.com/leethomason/tinyxml2), pugixml ( https://github.com/zeux/pugixml), and Xerces-C++ ( https://xerces.apache.org/xerces-c/) are only DOM-based. There are quite a few C libraries, like libxml2, that can be SAX-like, but C libraries are horrible to use (http://www.xmlsoft.org/examples/testWriter.c).
There are several C++ wrappers for libxml2 on GitHub. Maybe they can be useful:
https://github.com/libxmlplusplus/libxmlplusplus https://github.com/rioki/libxmlmm Yuriy -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel