<?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: How to parse XML data using Jquery</title>
	<atom:link href="http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/</link>
	<description>Tech, Tips N Tricks and Web 2.0</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:00:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: teo</title>
		<link>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/comment-page-1/#comment-4929</link>
		<dc:creator>teo</dc:creator>
		<pubDate>Wed, 14 Dec 2011 09:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.techbray.com/?p=287#comment-4929</guid>
		<description>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah nice..</description>
		<content:encoded><![CDATA[<p>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaah nice..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Fisher</title>
		<link>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/comment-page-1/#comment-4455</link>
		<dc:creator>Peter Fisher</dc:creator>
		<pubDate>Sun, 06 Nov 2011 18:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.techbray.com/?p=287#comment-4455</guid>
		<description>Very useful and simple, worth a bookmark.  Thanks</description>
		<content:encoded><![CDATA[<p>Very useful and simple, worth a bookmark.  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raghav</title>
		<link>http://www.techbray.com/2009/11/how-to-parse-xml-data-using-jquery/comment-page-1/#comment-3901</link>
		<dc:creator>raghav</dc:creator>
		<pubDate>Mon, 15 Aug 2011 00:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.techbray.com/?p=287#comment-3901</guid>
		<description>I am a newbie and was trying to traverse a ajax loaded xml file. I am trying to populate all the names and city from it, and if the name is common then i would just append the city for the common name.

my xml file

           
           
           US
           Edward
           San bruno 
           

           
           US
           Edward
           Charleston  
           
           
I an trying to show it in a format like this

           Edward
           San Bruno
           Charleston

My jquery code looks like this
           
           $.ajax({
    	   type: &quot;GET&quot;,
	   url: &quot;sheet.xml&quot;,
	   dataType: &quot;xml&quot;,
	   success: function(xml) {
			$(xml).find(&#039;detail&#039;).each(function(){
				var Pname = $(this).find(&#039;name&#039;).text();
				$(&#039;                &#039;).html(&#039;&lt;Strong&gt;&#039;+name+&#039;&lt;/Strong&gt;&#039;).appendTo(&#039;#content&#039;);
				if(Pname = $(xml).find(&#039;name&#039;).each(function(){
				var city = $(this).find(&#039;city&#039;).text();
				var full = name + &quot;,&quot;+city;
				$(&#039;&#039;).html(&#039;&lt;a href=&quot;&#039;+city+&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;+city+&#039;&lt;/a&gt;&#039;).appendTo(&#039;#content&#039;);
				});

I am just not able to loop it again so that I can find the guy with same name but a different city hence placing them together according to different location. 
any Help would be appreciated.  Thanks in advance..</description>
		<content:encoded><![CDATA[<p>I am a newbie and was trying to traverse a ajax loaded xml file. I am trying to populate all the names and city from it, and if the name is common then i would just append the city for the common name.</p>
<p>my xml file</p>
<p>           US<br />
           Edward<br />
           San bruno </p>
<p>           US<br />
           Edward<br />
           Charleston  </p>
<p>I an trying to show it in a format like this</p>
<p>           Edward<br />
           San Bruno<br />
           Charleston</p>
<p>My jquery code looks like this</p>
<p>           $.ajax({<br />
    	   type: &#8220;GET&#8221;,<br />
	   url: &#8220;sheet.xml&#8221;,<br />
	   dataType: &#8220;xml&#8221;,<br />
	   success: function(xml) {<br />
			$(xml).find(&#8216;detail&#8217;).each(function(){<br />
				var Pname = $(this).find(&#8216;name&#8217;).text();<br />
				$(&#8216;                &#8216;).html(&#8216;<strong>&#8216;+name+&#8217;</strong>&#8216;).appendTo(&#8216;#content&#8217;);<br />
				if(Pname = $(xml).find(&#8216;name&#8217;).each(function(){<br />
				var city = $(this).find(&#8216;city&#8217;).text();<br />
				var full = name + &#8220;,&#8221;+city;<br />
				$(&#8221;).html(&#8216;<a href="'+city+'" rel="nofollow">&#8216;+city+&#8217;</a>&#8216;).appendTo(&#8216;#content&#8217;);<br />
				});</p>
<p>I am just not able to loop it again so that I can find the guy with same name but a different city hence placing them together according to different location.<br />
any Help would be appreciated.  Thanks in advance..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

