c++ xml parser

Derek Atkins warlord-DPNOqEs/LNQ at public.gmane.org
Fri Apr 22 09:53:52 EDT 2011


Stephen Adler <adler-wRvlPVLobi1/31tCrMuHxg at public.gmane.org> writes:

> Hi Blu'ers,
>
> I'm looking to write some code which needs to parse the contents of an 
> xml file in c++. A quick search brings up xerces, rapidxml, tinyxml and 
> a few other packages. Does anyone have a suggestions as to which one I 
> should learn?

libxml2

Seriously, just because you're writing in C++, why do you need to use a
C++ XML parser?  You'll find libxml2 is used in so many things that you
can practically guarantee it will be installed.

Xerces is probably the most popular C++ parser, but it's large, bulky,
and has no ABI which means you need to rebuild your whole application
any time Xerces makes a new release.

> Thanks. Steve.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord-DPNOqEs/LNQ at public.gmane.org                        PGP key available




More information about the Discuss mailing list