Jump to content
  • Advertisement
Sign in to follow this  
golgoth

Parse XML with Expat!

This topic is 4480 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

Hi all! Anyone have a good simple tutorial and/or working code sample that does more then sketching the concept... but really load an xml file with Expat? how hard could it be to find such thing? well, lets find out! thx

Share this post


Link to post
Share on other sites
Advertisement
I'm gonna move this to General Programming as XML parsing is not really Scripting or Mod territory.

Share this post


Link to post
Share on other sites
Well, there is that introductory article (there is a link on the main page on Expat web site) : here

Read it and don't forget to read ALL pages. There are some samples (source code included). They don't do a lot of things but it shows the basics about XML loading with Expat.

I found it quite easy to understand how it works with this article.

If it isn't enough for you, you could download the syBR engine. It is the engine I'm currently working on. It is not very advanced (version is 0.0.3 [lol]) but you can find in the "game" part/directory a file named PluginSettings.cpp which actually loads an XML file and use it to load some settings.

Hope it thelps.

Edit: linkified article

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!