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++?
Want to get started on using XML
Theres not a lot to learn about xml, but a good starting place would be the tinyxml lib/docs
http://www.grinninglizard.com/tinyxml/
http://www.grinninglizard.com/tinyxml/
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
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
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!
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!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement