tags:

views:

70

answers:

2

What from xml, json, rss, atom format will generate less traffic?

+6  A: 

If your goal is to minimize bandwidth, JSON will get you the most bang for your buck out of the choices listed. All the other forms are based around XML, which has significantly higher overhead costs.

John Feminella
Thanks. Thats all I want to know.
dive
if you format your xml properly (use lots of attriutes) xml and json are about the same
vtd-xml-author
@Jimmy: That's somewhat true, I suppose, but I wouldn't call that "formatting it properly". That's more like forcing a square XML peg into a round JSON hole just for the sake of shaving off a few of its corners.
John Feminella
+2  A: 

If you will gzip HTTP response on a server-side, then you won't feel the difference between xml, json, rss, atom or event JSON (though json will be a tiny bit smaller), so you can choose what is more convinient to you. If you will not gzip http response, then JSON is the right choise.

poiuyttr
I can't control server response because it's a third party service and server doesn't gziping responses as I can see. So, my choice is JSON.Thanks.
dive