Jump to content
  • Advertisement
Sign in to follow this  
lride

Want to get started on using XML

This topic is 2152 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'd like to start learning XML for storing game data.
I've googled, but I couldn't find a good place to start.
Can someone lead me to a good tutorial on XML with C++?

Share this post


Link to post
Share on other sites
Advertisement
w3 has great tutorials on XML in general, but yea, TinyXML is probably the most used C++ XML parser and is fairly simple to use.

http://www.w3schools.com/xml/

I would also highly suggest learning XPath. It's a way to easily query and navigate XML. If you ever write any tools that create/consume XML, XPath is a life saver. If you use C# for your tools the System.Xml library has really solid XML/XPath support(you may need .NET 4.0 for XPath 2.0 support, but whatever).

http://www.w3schools...ath/default.asp Edited by AdeptStrain

Share this post


Link to post
Share on other sites
Hi IRide,

I've been using Tinyxml in my games for a bit. You can look at my code (link found here, also available from my Old blog linked in my Sig), specifically the GameSound files, and the Utilities files, I use tinyxml to load the sounds (from the xml file SmashPcSounds.xml) and to load the player configuration (from SmashPcCfg.xml).

Good luck and have fun!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!