
Originally Posted by
itmitică
WebSockets, hopefully, will replace AJAX. Or any other AJ***. Maybe even AJAJSON.
The point is that XML is still in active use. It hasn't been abandoned. I'm just not sure why you are so vehemently against it.
WebSockets are interesting, but since most browsers out in the wild don't actually support them, they are impractical for real-world use.
Off Topic:
Especially until 2017. This is when support Windows Vista ends, and Microsoft has already stated that IE9 will be the lastest browser version deployed to Vista. WebSocket support is planned for IE10.
RSS is becoming redundant. (Apple drops RSS in OS X 10.8 Mountain Lion.)
Redundant how? What's replacing it?
All apple did was remove it from their browser and mail applications (as a side note: I've been questioning some of Apple's strategies and decisions as of late; this being one of them). RSS is also still supported through Apps in the app store. Other browsers still support it, and there are plenty of other 3rd-party stand-alone RSS readers still available.
Too verbose for that. JSON, YAML,...
JSON is great for transferring simple data. JSON is strongly tied to Javascript, while XML is language-independent. XML tends to be a better for longer-term storage because it's structured and standardized. And XML can be as verbose or as concise as you want it to be.
Here's a quick comparison between what you can do with JSON and what you can do with XML.
JSON:
Code:
{ "firstName": "John",
"lastName": "Smith",
"age": 25,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021"
},
"phoneNumber": [
{
"type": "home",
"number": "212 555-1234"
},
{
"type": "fax",
"number": "646 555-4567"
}
]
}
XML:
Code:
<person firstName="John" lastName="Smith" age="25">
<address streetAddress="21 2nd Street" city="New York" state="NY" postalCode="10021" />
<phoneNumbers>
<phoneNumber type="home" number="212 555-1234"/>
<phoneNumber type="fax" number="646 555-4567"/>
</phoneNumbers>
</person>
(Source: http://en.wikipedia.org/wiki/JSON#XML)
YAML is problematic because it isn't a tag-based language, but a tab-delimited based language. It's way too easy to end up with a malformed document, and thus makes it impractical. With XML, formatting and spacing doesn't matter since it's a tag-based language (although it helps so that the data is more easily human-readable).
Bookmarks