<?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: Linq to XML Tutorial</title>
	<atom:link href="http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/</link>
	<description>Everything .NET and C#</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:25:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21314</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 26 Jan 2012 23:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21314</guid>
		<description>Snehal

Are you using the exact code from the post? Would need to see what line your getting the error on to give any help. Also, am assuming the error is &#039;Object reference not set to an instance of an object&quot;?

It&#039;s possible that the element your trying to access doesn&#039;t exist.

Joe</description>
		<content:encoded><![CDATA[<p>Snehal</p>
<p>Are you using the exact code from the post? Would need to see what line your getting the error on to give any help. Also, am assuming the error is &#8216;Object reference not set to an instance of an object&#8221;?</p>
<p>It&#8217;s possible that the element your trying to access doesn&#8217;t exist.</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snehal</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21313</link>
		<dc:creator>Snehal</dc:creator>
		<pubDate>Wed, 25 Jan 2012 11:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21313</guid>
		<description>It is good.
I am getting error, while updating the thing, data in xml file is getting updated but while fetching it again I am getting &quot;Object reference not set to null&quot;. Can anyone help?</description>
		<content:encoded><![CDATA[<p>It is good.<br />
I am getting error, while updating the thing, data in xml file is getting updated but while fetching it again I am getting &#8220;Object reference not set to null&#8221;. Can anyone help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JOJY</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21305</link>
		<dc:creator>JOJY</dc:creator>
		<pubDate>Mon, 09 Jan 2012 07:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21305</guid>
		<description>GOOD TUTORIAL FOR BEGINNERS...THANKS A LOT</description>
		<content:encoded><![CDATA[<p>GOOD TUTORIAL FOR BEGINNERS&#8230;THANKS A LOT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21299</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Fri, 30 Dec 2011 01:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21299</guid>
		<description>Thank you for taking the time to write such a clear and concise article on Linq to XML for the benefit of all.</description>
		<content:encoded><![CDATA[<p>Thank you for taking the time to write such a clear and concise article on Linq to XML for the benefit of all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kellsie</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21296</link>
		<dc:creator>kellsie</dc:creator>
		<pubDate>Thu, 22 Dec 2011 10:50:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21296</guid>
		<description>thanks a lots.good article for beginners.</description>
		<content:encoded><![CDATA[<p>thanks a lots.good article for beginners.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21279</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Thu, 01 Dec 2011 09:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21279</guid>
		<description>Thanks for this post. Helped me a lot</description>
		<content:encoded><![CDATA[<p>Thanks for this post. Helped me a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: August Duet</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21265</link>
		<dc:creator>August Duet</dc:creator>
		<pubDate>Thu, 10 Nov 2011 10:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21265</guid>
		<description>Thanks Joe, After several hours and some ugly code that only marginally worked this article cleared it all up for me. Keep it up.</description>
		<content:encoded><![CDATA[<p>Thanks Joe, After several hours and some ugly code that only marginally worked this article cleared it all up for me. Keep it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KinQ</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21062</link>
		<dc:creator>KinQ</dc:creator>
		<pubDate>Wed, 19 Oct 2011 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21062</guid>
		<description>Awesome tutorial/example :)
thanks a lot</description>
		<content:encoded><![CDATA[<p>Awesome tutorial/example <img src='http://www.joe-stevens.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jatin Chadarana</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21024</link>
		<dc:creator>Jatin Chadarana</dc:creator>
		<pubDate>Mon, 12 Sep 2011 17:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21024</guid>
		<description>Great Article for beginner....</description>
		<content:encoded><![CDATA[<p>Great Article for beginner&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mangrish Naik</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-21014</link>
		<dc:creator>Mangrish Naik</dc:creator>
		<pubDate>Thu, 18 Aug 2011 12:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-21014</guid>
		<description>It ws very helpful tutorial.....
learned a lot 4m examples</description>
		<content:encoded><![CDATA[<p>It ws very helpful tutorial&#8230;..<br />
learned a lot 4m examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thottijeya</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-20813</link>
		<dc:creator>Thottijeya</dc:creator>
		<pubDate>Wed, 11 May 2011 06:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-20813</guid>
		<description>Useful article! You deserve lot of thanks for your spending time on helping us learn the basics of LINQ to XML. This article is a nice introduction to those who want to start learning LINQ to XML.</description>
		<content:encoded><![CDATA[<p>Useful article! You deserve lot of thanks for your spending time on helping us learn the basics of LINQ to XML. This article is a nice introduction to those who want to start learning LINQ to XML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-20808</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 28 Apr 2011 00:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-20808</guid>
		<description>Hi Pranshu

It&#039;s difficult to say what your issue is without seeing all your code.

Cheers
Joe</description>
		<content:encoded><![CDATA[<p>Hi Pranshu</p>
<p>It&#8217;s difficult to say what your issue is without seeing all your code.</p>
<p>Cheers<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pranshu</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-20804</link>
		<dc:creator>Pranshu</dc:creator>
		<pubDate>Wed, 20 Apr 2011 10:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-20804</guid>
		<description>Hi Joe,

It was a nice post. I am new to Linq. 
However while tying your given code in POC (VS2010); I was geting null exception on below lines:
c.Attribute(&quot;ID&quot;)Value.Equals(customerID.ToString())
and
c.Element(&quot;Forename&quot;).Value
also on all similar lines.

While debugging I was able to rectify the issue by replcaing it to:
c.Element(&quot;Customer&quot;).Attribute(&quot;ID&quot;).Value.Equals(customerID.ToString())
and
c.Element(&quot;Customer&quot;).Element(&quot;Forename&quot;).Value

I was confused to see so many comments on the post and none of us faced such issue. 

You can mail me for further clarification/information.

Please correct me know in case I have missed out anything or interpreted wrongly.

Regards,
Pranshu</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>It was a nice post. I am new to Linq.<br />
However while tying your given code in POC (VS2010); I was geting null exception on below lines:<br />
c.Attribute(&#8220;ID&#8221;)Value.Equals(customerID.ToString())<br />
and<br />
c.Element(&#8220;Forename&#8221;).Value<br />
also on all similar lines.</p>
<p>While debugging I was able to rectify the issue by replcaing it to:<br />
c.Element(&#8220;Customer&#8221;).Attribute(&#8220;ID&#8221;).Value.Equals(customerID.ToString())<br />
and<br />
c.Element(&#8220;Customer&#8221;).Element(&#8220;Forename&#8221;).Value</p>
<p>I was confused to see so many comments on the post and none of us faced such issue. </p>
<p>You can mail me for further clarification/information.</p>
<p>Please correct me know in case I have missed out anything or interpreted wrongly.</p>
<p>Regards,<br />
Pranshu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ik0_a</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-20787</link>
		<dc:creator>Ik0_a</dc:creator>
		<pubDate>Mon, 28 Mar 2011 15:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-20787</guid>
		<description>Good article to begin with.

Thank !</description>
		<content:encoded><![CDATA[<p>Good article to begin with.</p>
<p>Thank !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yehuda</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-20780</link>
		<dc:creator>Yehuda</dc:creator>
		<pubDate>Fri, 11 Mar 2011 23:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-20780</guid>
		<description>Excellent! 
Thank you.</description>
		<content:encoded><![CDATA[<p>Excellent!<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-19942</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Sat, 05 Feb 2011 11:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-19942</guid>
		<description>Is there a bug in the GetCustomers() method in the orderby clause? I reckon that &quot;Surname&quot; is an Element not an Attribute and I also reckon that you would have to tack a .Value onto the end.

i.e. I think the orderby clause should be:
orderby c.Element(&quot;Surname&quot;).Value</description>
		<content:encoded><![CDATA[<p>Is there a bug in the GetCustomers() method in the orderby clause? I reckon that &#8220;Surname&#8221; is an Element not an Attribute and I also reckon that you would have to tack a .Value onto the end.</p>
<p>i.e. I think the orderby clause should be:<br />
orderby c.Element(&#8220;Surname&#8221;).Value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: var</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-8329</link>
		<dc:creator>var</dc:creator>
		<pubDate>Sun, 12 Dec 2010 19:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-8329</guid>
		<description>Thanks. This was a great help.

What would the save method look like, if each customer had a repeating sub element?

&lt;phones&gt;
&lt;phone&gt;555-1212&lt;/phone&gt;
&lt;phone&gt;555-1111&lt;/phone&gt;
&lt;phone&gt;555-2121&lt;/phone&gt;
&lt;/phones&gt;</description>
		<content:encoded><![CDATA[<p>Thanks. This was a great help.</p>
<p>What would the save method look like, if each customer had a repeating sub element?</p>
<p>&lt;phones&gt;<br />
&lt;phone&gt;555-1212&lt;/phone&gt;<br />
&lt;phone&gt;555-1111&lt;/phone&gt;<br />
&lt;phone&gt;555-2121&lt;/phone&gt;<br />
&lt;/phones&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kas</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-8219</link>
		<dc:creator>Kas</dc:creator>
		<pubDate>Sat, 11 Dec 2010 04:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-8219</guid>
		<description>Hi Joe,

Thank you for this article. It was very helpful for me.

Regards,
Kas</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>Thank you for this article. It was very helpful for me.</p>
<p>Regards,<br />
Kas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piotr</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-6904</link>
		<dc:creator>Piotr</dc:creator>
		<pubDate>Sun, 21 Nov 2010 21:39:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-6904</guid>
		<description>Hi i just used your class GetNextAvailableID() and when id reached 10, next avalible id was 2, i just delete FirstOrDefault from:
select c.Attribute(&quot;ID&quot;).Value).FirstOrDefault()
and it works fine, anyway this article help me a lot:) (I&#039;m newbie to linqtoxml and c#)</description>
		<content:encoded><![CDATA[<p>Hi i just used your class GetNextAvailableID() and when id reached 10, next avalible id was 2, i just delete FirstOrDefault from:<br />
select c.Attribute(&#8220;ID&#8221;).Value).FirstOrDefault()<br />
and it works fine, anyway this article help me a lot:) (I&#8217;m newbie to linqtoxml and c#)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand K Reddy</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-6703</link>
		<dc:creator>Anand K Reddy</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-6703</guid>
		<description>Superab!!!

It has made my job very easy to get started on Linq to xml.

Thank you</description>
		<content:encoded><![CDATA[<p>Superab!!!</p>
<p>It has made my job very easy to get started on Linq to xml.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-6092</link>
		<dc:creator>Kapil</dc:creator>
		<pubDate>Tue, 09 Nov 2010 02:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-6092</guid>
		<description>Hi, 

Nice article, I am doing similar thing but i want to select the Phone based on Type (attribute)

some thing like this

XXX-XXX-XXXX
XXX-XXX-XXXX

So i can do the if inside the Select new Customer()
{
PhoneHome = ????
}

can you help me on that? Thanks</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Nice article, I am doing similar thing but i want to select the Phone based on Type (attribute)</p>
<p>some thing like this</p>
<p>XXX-XXX-XXXX<br />
XXX-XXX-XXXX</p>
<p>So i can do the if inside the Select new Customer()<br />
{<br />
PhoneHome = ????<br />
}</p>
<p>can you help me on that? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noman A. Siddiqui</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-5187</link>
		<dc:creator>Noman A. Siddiqui</dc:creator>
		<pubDate>Wed, 27 Oct 2010 13:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-5187</guid>
		<description>Great Article.... Thanks Joe.</description>
		<content:encoded><![CDATA[<p>Great Article&#8230;. Thanks Joe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cipher0003</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-4280</link>
		<dc:creator>cipher0003</dc:creator>
		<pubDate>Fri, 08 Oct 2010 08:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-4280</guid>
		<description>Great example!! Thanks for sharing!! I wonder, that there is nothing comparable out there.
I found very strange to see a copy of your article.
Community means sharing and make it even better, not plain copying.......</description>
		<content:encoded><![CDATA[<p>Great example!! Thanks for sharing!! I wonder, that there is nothing comparable out there.<br />
I found very strange to see a copy of your article.<br />
Community means sharing and make it even better, not plain copying&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-3158</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 31 Aug 2010 03:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-3158</guid>
		<description>Ralph

It&#039;s just a POCO. I can&#039;t really help without knowing exactly where you are getting your exception or seeing the source code.

Joe</description>
		<content:encoded><![CDATA[<p>Ralph</p>
<p>It&#8217;s just a POCO. I can&#8217;t really help without knowing exactly where you are getting your exception or seeing the source code.</p>
<p>Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph Daudi</title>
		<link>http://www.joe-stevens.com/2010/01/08/linq-to-xml-tutorial/comment-page-1/#comment-3091</link>
		<dc:creator>Ralph Daudi</dc:creator>
		<pubDate>Fri, 27 Aug 2010 11:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=377#comment-3091</guid>
		<description>Hi Joe

It is basically the same code as yours, but was trying to understand it by building from scratch - are you using Reflection for the Customer class?</description>
		<content:encoded><![CDATA[<p>Hi Joe</p>
<p>It is basically the same code as yours, but was trying to understand it by building from scratch &#8211; are you using Reflection for the Customer class?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

