views:

76

answers:

2

Are there alternatives to expat for stream-oriented XML parsing in C++? The data that I am dealing with arrives over a TCP connection and there are multiple XML documents to deal with, which means I have to reset the XML parser every time there is a new document. The parser doesn't need to be standards-compliant; I'm interested in being able to parse the XML syntax using a callback-oriented process, rather than conforming to a particular schema.

+2  A: 

What about Xerces-C++?

wilx
I'm not sure, but you may have a point there. :-)
Gianni
Test-driving Xerces-C++ right now. The API is nice, but I'm not sure whether it will support the kind of streaming that happens over a TCP connection, where I'll receive chunks of data, and many documents and need to reset the XML parsing without losing the spot in the buffer where it left off.
Kenny Peng
+2  A: 

You could try Apache's Xerces.

Gianni