Pugixml vs tinyxml

Short question: any comments comparing pugixml and tinyxml, please?

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

It seems to me that TinyXML and pugixml are good options (RapidXML is also good, but its interface does not seem to be as simple as above, since I have to manage the data distribution myself).

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

Speed ​​is not as important as memory usage and a simple interface.

Thanks. PS The XML files I'm dealing with are pretty small (maximum size = 1200 bytes, maximum elements = 6 or 7, XML files are pretty simple).

+7
source share
3 answers

I used tinyxml, QtXml, extended the property tree, and as far as I can remember, pugixml is the fastest XML DOM parser.

As for the built-in, I used pugixml with about 9 MB xml files - and everything works fine and fast. But I do not know about your memory limit - just write a simple example and check.

+3
source

I used TinyXML 6 months ago, I think this is great ...

+1
source

You can look at Expat. I used it for about 8 years in a commercial product without any problems. It is an open source non-virus license.

+1
source

All Articles