Click to See Complete Forum and Search --> : XML parser C++


bech
February 14th, 2005, 07:21 AM
How can I read/write XML files using C++ on Linux RedHat platform? Is there any C++ parser to manage XML files? Where can I find it?

Thanks!

usman999_1
February 14th, 2005, 08:28 AM
How can I read/write XML files using C++ on Linux RedHat platform? Is there any C++ parser to manage XML files? Where can I find it?

Thanks!
Xerces (http://xml.apache.org/xerces-c/) is C++ DOM parser (Tree-based). There is another XML parser Expat written in plain C, its a SAX parser (Event-based). You can find it here (http://expat.sourceforge.net/). Both are open-source.
Hope this helps,
Regards,
Usman.

Andreas Masur
February 14th, 2005, 08:28 AM
Simply use a search engine such as Google and look for "XML parser C++"... ;)

spoulson
February 14th, 2005, 08:56 AM
My preference is libxml (http://www.libxml.org), which is probably already bundled with your Red Hat installation.

bashish
February 15th, 2005, 03:03 AM
As far as I know even Expat is bundled with some of Linux flavors.

bashish