Sign in to follow this  
lride

Want to get started on using XML

Recommended Posts

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.

[url="http://www.w3schools.com/xml/"]http://www.w3schools.com/xml/[/url]

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).

[url="http://www.w3schools.com/xpath/default.asp"]http://www.w3schools...ath/default.asp[/url] 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 [url="http://2dgamemaking.blogspot.com/2011/11/tying-up-loose-smashpc-ends.html"]here[/url], 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

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