<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: JSON vs XML</title>
	<atom:link href="http://www.subbu.org/blog/2006/08/json-vs-xml/feed" rel="self" type="application/rss+xml" />
	<link>http://www.subbu.org/blog/2006/08/json-vs-xml</link>
	<description>HTTP, REST and some Cycling</description>
	<pubDate>Thu, 20 Nov 2008 08:34:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7-beta3</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bala Anil</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-11292</link>
		<dc:creator>Bala Anil</dc:creator>
		<pubDate>Tue, 18 Nov 2008 19:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-11292</guid>
		<description>Very nice article.
But I don't agree in one of those points that you discussed is Ease of Data Processing on the Client Side. If you use IE, DOM is very powerful for XML data reading.

var xml = xhr.responseXML;   
var elements = xml.selectSingleNode("person/firstName")
// This is excellent if you have even more nested childs
alert(elements.innerHTML); 

One more difference between them is nested data. XML is the best to deal with the nested data.</description>
		<content:encoded><![CDATA[<p>Very nice article.<br />
But I don&#8217;t agree in one of those points that you discussed is Ease of Data Processing on the Client Side. If you use IE, DOM is very powerful for XML data reading.</p>
<p>var xml = xhr.responseXML;<br />
var elements = xml.selectSingleNode(&#8221;person/firstName&#8221;)<br />
// This is excellent if you have even more nested childs<br />
alert(elements.innerHTML); </p>
<p>One more difference between them is nested data. XML is the best to deal with the nested data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudhir</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-131</link>
		<dc:creator>Sudhir</dc:creator>
		<pubDate>Fri, 27 Jun 2008 05:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-131</guid>
		<description>
Nice article,
I like JSON because of its ease of processing on the client side.


</description>
		<content:encoded><![CDATA[<p>Nice article,<br />
I like JSON because of its ease of processing on the client side.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dutt</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-130</link>
		<dc:creator>Dutt</dc:creator>
		<pubDate>Fri, 16 Nov 2007 01:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-130</guid>
		<description>Thanks for the post, very nice one, I shall share this to my friends.
</description>
		<content:encoded><![CDATA[<p>Thanks for the post, very nice one, I shall share this to my friends.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subbu Allamaraju</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-129</link>
		<dc:creator>Subbu Allamaraju</dc:creator>
		<pubDate>Thu, 23 Aug 2007 13:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-129</guid>
		<description>Thanks for the comment. Fixed the typo.
</description>
		<content:encoded><![CDATA[<p>Thanks for the comment. Fixed the typo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dreamwind</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-128</link>
		<dc:creator>dreamwind</dc:creator>
		<pubDate>Thu, 23 Aug 2007 12:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-128</guid>
		<description>There is a typo in link for QuirksMode.org

Thank you for article
</description>
		<content:encoded><![CDATA[<p>There is a typo in link for QuirksMode.org</p>
<p>Thank you for article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oren</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-127</link>
		<dc:creator>Oren</dc:creator>
		<pubDate>Thu, 24 May 2007 19:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-127</guid>
		<description>I agree, I even think that working with JSON is much more easier on server side than working with XML on the client.

Thanks, your post was very helpful that I summarized it on our blog.
</description>
		<content:encoded><![CDATA[<p>I agree, I even think that working with JSON is much more easier on server side than working with XML on the client.</p>
<p>Thanks, your post was very helpful that I summarized it on our blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phil</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-126</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Wed, 24 Jan 2007 23:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-126</guid>
		<description>Room for both technologies IMHO.  Our industry does seem to have a penchant for religious fervor where technology selection is concerned.
</description>
		<content:encoded><![CDATA[<p>Room for both technologies IMHO.  Our industry does seem to have a penchant for religious fervor where technology selection is concerned.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subbu Allamaraju</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-125</link>
		<dc:creator>Subbu Allamaraju</dc:creator>
		<pubDate>Thu, 21 Sep 2006 13:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-125</guid>
		<description>&lt;p&gt;In Response to Tim Lesher's comment...&lt;/p&gt;

&lt;p&gt;I agree with your comment. It is not valid JSON at the format level. My intent was just to illustrate the point that you can inject code like this. In the absense of a method like responseObject on XMLHttpRequest, eval is the most common means of parsing JSON, and so one can include script in it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>In Response to Tim Lesher&#8217;s comment&#8230;</p>
<p>I agree with your comment. It is not valid JSON at the format level. My intent was just to illustrate the point that you can inject code like this. In the absense of a method like responseObject on XMLHttpRequest, eval is the most common means of parsing JSON, and so one can include script in it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Lesher</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-124</link>
		<dc:creator>Tim Lesher</dc:creator>
		<pubDate>Thu, 21 Sep 2006 11:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-124</guid>
		<description>&lt;p&gt;&lt;i&gt;There is another kind of extensibility possible with JSON, that is to inject code along with the data into the response.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;Actually, the example you gave is not valid JSON.  Per the JSON spec (&lt;a href="http://www.ietf.org/rfc/rfc4627.txt" rel="nofollow"&gt;RFC 4627&lt;/a&gt;), JSON elements must be either an object (defined as a {} pair), array, number, string, true, false, or null.  alert is none of the above.&lt;/p&gt;

&lt;p&gt;JSON is not JavaScript--it's a restricted subset of JavaScript, so it's an error (and a nice security hole) to use JavaScript's eval() to parse it.  The right way to parse it is with a real JSON parser (like the JavaScript-based one at json.org).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><i>There is another kind of extensibility possible with JSON, that is to inject code along with the data into the response.</i></p>
<p>Actually, the example you gave is not valid JSON.  Per the JSON spec (<a href="http://www.ietf.org/rfc/rfc4627.txt" rel="nofollow">RFC 4627</a>), JSON elements must be either an object (defined as a {} pair), array, number, string, true, false, or null.  alert is none of the above.</p>
<p>JSON is not JavaScript&#8211;it&#8217;s a restricted subset of JavaScript, so it&#8217;s an error (and a nice security hole) to use JavaScript&#8217;s eval() to parse it.  The right way to parse it is with a real JSON parser (like the JavaScript-based one at json.org).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Almiray</title>
		<link>http://www.subbu.org/blog/2006/08/json-vs-xml/comment-page-1#comment-123</link>
		<dc:creator>Andres Almiray</dc:creator>
		<pubDate>Tue, 05 Sep 2006 16:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2006/08/json-vs-xml/#comment-123</guid>
		<description>I'm glad you mentioned Json-lib =)
</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad you mentioned Json-lib =)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
