0

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.

Kenny Peng
  • 1,851
  • 4
  • 18
  • 25

2 Answers2

2

What about Xerces-C++?

wilx
  • 17,239
  • 5
  • 58
  • 112
  • 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 Aug 05 '10 at 21:37
2

You could try Apache's Xerces.

Gianni
  • 4,160
  • 17
  • 23