Jump to content

  • Log In with Google      Sign In   
  • Create Account

Want to get started on using XML


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 lride   Members   -  Reputation: 633

Like
0Likes
Like

Posted 26 November 2012 - 10:37 PM

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++?
An invisible text.

Sponsor:

#2 NumberXaero   Prime Members   -  Reputation: 1514

Like
1Likes
Like

Posted 26 November 2012 - 10:59 PM

Theres not a lot to learn about xml, but a good starting place would be the tinyxml lib/docs
http://www.grinninglizard.com/tinyxml/

#3 AdeptStrain   Members   -  Reputation: 369

Like
0Likes
Like

Posted 29 November 2012 - 10:46 AM

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, 29 November 2012 - 10:47 AM.


#4 BeerNutts   Crossbones+   -  Reputation: 3000

Like
0Likes
Like

Posted 29 November 2012 - 01:41 PM

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!
My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS