C++ XML Parser

Dmitriy Kropivnitskiy nigde at mitechki.net
Wed Jan 3 18:30:18 UTC 2007


James Kosin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Mike - EMAIL IGNORED wrote:
>> Can someone recommend an XML parser for
>> for use with C++?
>> Thanks,
>> Mike.
>>
> Mike,
> 
> An XML parser is more or less a text parser.
> Usually best to write your own.  It is very simple design and
> straightforward.

Yikes! This is a very bad suggestion. The idea behind standards like XML is to have standard tools to work with them, thus eliminating repeating the 
same mistakes in every implementation. You don't go writing a new regular expression parser every time you need regexes do you? To answer the original 
email, there are a few XML parsers in common use out there. The main ones for UNIX are probably libxml and expat.

http://xmlsoft.org/ (and the C++ bindings http://libxmlplusplus.sourceforge.net/ )
and http://expat.sourceforge.net/




More information about the fedora-list mailing list