Search code examples
c++xmlxpathlarge-data

How to get correct data in a large xml file?


I have a large xml file (contains about few million records) and need to get about 100 records (based on id or something like that)

I tried TinyXml and Xalan-C but both of them using DOM, therefore it cause a out of memory issue.

Is there a C/C++ library that can do that without loading all data to memory as DOM?


Solution

  • You need a SAX parser like Xerces