Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pugixml vs tinyxml [closed]

Short question: any comments on comparison of pugixml and tinyxml please?

Details I need to use an XML parser/writer. My software is written in C++.

It seems to me TinyXML and pugixml are both good options (RapidXML is good as well but its interface does not seem to be as easy as the above two as I have to manage data allocations myself).

Do people have any comments on the comparison between the two? I am working on an embedded platform so memory handling is important to me, and I need to be able to both parse and write XML data.

Speed is not that important but memory usage and easier interface are.

Thanks. PS The XML files I am dealing with are fairly small (max size=1200bytes; max elements=6 or 7; XML files are fairly simple).

like image 264
sw_eng Avatar asked Jan 13 '12 20:01

sw_eng


2 Answers

I used tinyxml, QtXml, boost property tree, and, as I remember, pugixml is fastest DOM xml-parser.

As for embedded, I used pugixml with about 9Mb xml-files - and all works fine and fast. But I don't know about your memory limitation - just write simple example and check.

like image 154
Aleksey Bakin Avatar answered Sep 29 '22 08:09

Aleksey Bakin


I have used TinyXML 6 months ago, I think it is excellent...

like image 21
kaitian521 Avatar answered Sep 29 '22 08:09

kaitian521