0

I have a need to generate XML documents from C++. For reasons of performance I don't want to use an XML parser such as Xerces, or TinyXML and generate a DOM which I then serialize, ideally I want a kind of "reverse SAX" interface. I also need the code to be really portable, across Windows, UNIX, MacOSX etc.

The only reference so far I've found is to genx. Anyone got any other suggestions?

EDIT: This question what's the easiest way to generate xml in c++? actually seems to answer mine, or at least provides some links to other XML generating libraries.

Community
  • 1
  • 1
Tom Quarendon
  • 5,625
  • 5
  • 23
  • 30

2 Answers2

1

Rapidxml is very fast and pretty lightweight.

Jay
  • 13,803
  • 4
  • 42
  • 69
0

Looks like libxml2 has a streaming API. See answer to question create and stream large XML document in C++

Community
  • 1
  • 1
Tom Quarendon
  • 5,625
  • 5
  • 23
  • 30