Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xml parsing with constant memory usage

i am trying to find xml parser with xpath support that uses small amount of memory , or rather constant amount of memory , i am trying to parse large xml files , like almost 1 Giga , i have been reading about xqilla , and it seems that is uses very large amount of memory because it is dom based, correct me if i'm wrong.. anyways , any idea for such xml parser for C++ & linux ?

like image 986
shd Avatar asked Nov 05 '22 23:11

shd


1 Answers

If you can process the XML in essentially a single pass, a SAX parser would be a good idea. How about Apache Xerces C++?

like image 169
Robin Green Avatar answered Nov 10 '22 21:11

Robin Green