Jump to content
  • Advertisement
Sign in to follow this  
TheChubu

Why XML is all the rage now?

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

Well, that's the question.

 

It seems like every tool promotes its support of some XML based format and everyone is supposed to go all like "omg xml! yay!" yet I can't quite fanthom why is such a big deal.

 

I don't particulary consider XML a "pretty" schema to write your configuration files. It uses so many symbols, and not in a particularly "easy to look at" way.

 

What do you think?

Share this post


Link to post
Share on other sites
Advertisement

There are so many existing tools and libraries for working with XML that you don't have to do much of your own implementation -- for most languages you can be writing or parsing XML files within a few minutes and only a few lines of code.

 

JSON or YAML are both becoming popular alternatives.

 

//EDIT: What SiCrane said -- XML was all the rage a couple of years back, and because of that there are loads of tools and libraries supporting it, but I'd agree with the feeling that JSON and YAML are now being preferred by most people.

Edited by jbadams

Share this post


Link to post
Share on other sites

I had to check the date of this post biggrin.png , thought it was necroed.

 

I'm sure the tools support XML mostly for legacy reasons.  Some people refuse to change, and there are people who still think XML is the best thing ever.

Edited by alnite

Share this post


Link to post
Share on other sites

Aww man. Well, in my defense, 2/3 of the tools you find have some sort of XML file for configurations/formats/serialization/etc (say, build tools, or formats like collada).

 

Its just that it looked so ugly to think "Oh, I see what problem this is solving!"

 

I'm glad its been phased out. I knew a bit about JSON but YAML looks much, much better.

Share this post


Link to post
Share on other sites

From a professional standpoint, a lot of businesses still use xml as their data markup language.  I think that carries over into the gaming industry as well simply because of the sheer number of objects that support it.

Share this post


Link to post
Share on other sites

YAML is taking off? I have yet to see anything use it. JSON though, yes, it seems that lately everybody and their dogs are using JSON now. Probably because we're in full HTML5 mode, and JSON data is valid javascript, so using it is a non-brainer as you don't even need a parser (I wonder if anybody understands the implications of loading data as code though).

 

Personally, I prefer INI files anyway (well, INI-like at least). Yeah, call me old-fashioned, but they're a lot easier to deal with. XML is good when you need tree-style nesting, but most of the time you don't, really (and even then, those using XML more often than not abuse it resulting in ridiculously complex formats for no real reason).

Share this post


Link to post
Share on other sites

XML gets super retarded super fast.  But if you ever have to edit that by hand then the tree structure of XML is heaps better to find what you are doing then wadding through a bunch of square brackets and curly braces.

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!