Message Board


Message Board > Programming > What do you think of XML?

August 24, 2012, 19:01
Zomg
None
641 posts
Yes, I know it's not programming. Hehehe.

I can read opinions about XML on stackoverflow.com all day, but I would like to know what you guys think of the XML language and what you would use it for.

Is it annoying?
Is it humanly readable?
What would you use it for?

Your opinions please. :P
____________
#
August 28, 2012, 13:16
Caspah
Gladiator
203 posts
XML is awesome, great file format for a variety of data. I use it for all kinds of projects.

It is human readable, flexible, sometimes annoying. I use it for level data, save data, player data.
____________
"clowns to the left of me, jokers to the right. here i am, stuck in the middle with you." ~Stealers Wheel
#
August 28, 2012, 19:49
PB
Defender of the faith
630 posts

It's great to have a standard to handle data with (which is a big part of what software is about). Whether it is to save a document, to communicate with a web service, to get derived data using XPath or to transform XML to something else using XSLT. It's all XML and I don't think it is going away any time soon :-).
____________
#
August 31, 2012, 11:16
DTM
Earthling!
821 posts

I generally prefer JSON. It seems more readable and less cumbersome.
____________
:o
#
August 31, 2012, 11:25
Dennis
どこかにいる
2092 posts

I've used JSON in an online application, for fetching data from the database, combined with JQUERY to have some nice "widgets" in the app. I must say it's more functional while XML is more the data itself? Or am I wrong?

That was in APEX by the way

[Edited on August 31, 2012 by Dennis]
____________
Kwakkel
#
August 31, 2012, 23:55
PB
Defender of the faith
630 posts

Well basically, JavaScript has a way to declare objects and arrays inline. This part of JavaScript has been labelled JSON (JavaScript Object Notation) so that it is a standard which can be used in other environments as well. This is clever, because other software environments often know similar structures, like JavaScript does.

It's good for what it is, and I've used it in JavaScript, without knowing that I was using JSON really.

On the other hand, I've used a lot more XML. Which has a lot more to it than just objects and arrays. It has comments, there is xslt, and it even has processing instructions for your liking.


Finally though, I am convinced that the internet needs something different from HTML/CSS/JavaScript/XML. It does need a great awesome new standard, designed from ground up to make the fancy stuff websites do now really simple, and make it possible to do things that would break our heads now...

For now we'll have to deal with it, that companies spend rediculous amounts of money on getting pixel perfect designs implemented from what some guy made in photoshop...

[Edited on September 1, 2012 by PB]
____________
#
September 5, 2012, 09:40
Zomg
None
641 posts
Quoting Caspah:
XML is awesome, great file format for a variety of data. I use it for all kinds of projects.

It is human readable, flexible, sometimes annoying. I use it for level data, save data, player data.


Yes it is humanly readable, but when you get tons of nested elements with complicated names it quickly gets hard to read. Hmmm that kind of data. Neat. Thanks for the idea.
____________
#
September 5, 2012, 09:41
Zomg
None
641 posts
Quoting DTM:
I generally prefer JSON. It seems more readable and less cumbersome.


I don't have experience with JSON but I heard it has less possibilities. It's good for simple things but less good for advanced stuff?
____________
#
September 5, 2012, 09:41
Zomg
None
641 posts
Quoting Dennis:
I've used JSON in an online application, for fetching data from the database, combined with JQUERY to have some nice "widgets" in the app. I must say it's more functional while XML is more the data itself? Or am I wrong?

That was in APEX by the way


nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya. Jk. I think you are right - though I am not sure. Could find out at stackoverflow.com I guess.
____________
#

Message Board > Programming > What do you think of XML?

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!