Hi guys,

Looking for opinions on what would be the best/easiest xml parser to use.

Size and speed aren't really an issue here, just ease of use. Using std::strings as well would be beneficial.

Please reply only if you've had experience using one.

Edited 6 Years Ago by iamthwee: n/a

Comments
Informative! TinyXML++

Xerces is robust and comprehensive XML parser, with a lot of functionality such as DTD verification and character set detection and conversion (in conjuction with ICU lib). That said, ease of use is NOT it's strong point. The API is huge and it does not use std::string (uses it's own internally defined wide character type), it's default character set is UTF-16 and conversion requires familiarity with the ICU library, which is another monster.

Something that may be more suited to your needs (i.e. lightweight and flexible) would probably be 'expat', though I have only briefly looked at it. Check out http://expat.sourceforge.net/.

Edited 6 Years Ago by constantinm: n/a

This article has been dead for over six months. Start a new discussion instead.