Sign in to follow this  
WillPash

Simple XML reading/parsing tutorials in C++

Recommended Posts

As i am new to using XML in my applications, does anyone know where i can find a easier tutorial for me to parse XML using C++ and the libXML(preferably) or TinyXML libraries. As all i want to do is read from the XML information and use it inside my application. Thanks

Share this post


Link to post
Share on other sites
Not sure about libXML, I use TinyXML exclusively, and LOVE it.

TinyXML has a "testxml.cpp" file in the distribution that serves as a good tutorial. I read through it, and within 1/2 an hour, I was parsing XML files.

Share this post


Link to post
Share on other sites
Also if you look in the doc directory that comes with the latest version of TinyXML, theres a pretty good tutorial (tutorial0.html). Between the testxml.cpp file and the info in the docs directory, you should be able to figure it out (its actually very easy to use).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this