XML files with C++

Hello all

Are there any in-built functions in C++ to manipulate xml files?
If yes, which ones? Which Library?

Thanks & regards
Vijay
No.
You need to find a third party library to handle XML, of which there are tons.
On windows, yes
(Win32 COM api)
@George

What is that? Forgive me for my naivety, but I do not have much idea about COM API'S.

Is there not a straightforward solution like I just include some header file(let it be a 3rd part library)?
Feel free to disregard anything george135 says. He'll throw up an unportable, Microsoft-based solution at you the first chance he gets.

Usually, XML libraries are a single file (well, to be honest, I just can't imagine using multiple files for that), so you can just include the header and link the source to your project.
Thank you Helios. You are an pro here and I have seen you replying to lot of threads.

OK, when I google "C++ XML library", I see 1000s of solutions. Do you have any personal experience using any? If yes then let me know. I dont want to start with one, and then later realise that its a pain in the back!

Actually I do not even need to start programming right now. My professor wants to build an application where I need to exchange data using xml files. We have still not even decided which programming language to use. Since I know C++ to an extent, I suggested him C++. I know very well thats its much easier if I use C# or VB for it, but I would prefer C++ as "xml file transfer" is not the only task to accomplish. Its going to be a big project for 7-8 months.

Is it "too" complicated trying to interface with XML files using C++? I think it should not be, as all I need to do is to read and write to the tags in XML files. If the XML library provides me simple interfaces to "read" and "write", I suppose it would be sufficient.

Any inputs will be really appreciated.

Thanks in advance!
closed account (z05DSL3A)
Xerces is worth a look.
http://xerces.apache.org/xerces-c/
Thanks grey, that was also the first in the google result list :)
xbinder also
libxml2 ( http://www.xmlsoft.org/ ) and libxml++ ( http://libxmlplusplus.sourceforge.net/ )

Libxml2 is known to be very portable, the library should build and work without serious troubles on a variety of systems (Linux, Unix, Windows, CygWin, MacOS, MacOS X, RISC Os, OS/2, VMS, QNX, MVS, ...)


It is essentially the de-facto standard XML lib on Linux.

I used Xerces a very long time ago and it met my needs.
Topic archived. No new replies allowed.