Linq query on Xdocument returns "System.linq.Enumerable+WhereSelectEnumerableIterator'2[system.XML.Linq.Xelement,System.String] <p>I'm using the following XML:</p> <pre><code>&lt;?xml version="1.0" encoding="windows-1252"?&gt; &lt;hexML&gt; &lt;head&gt; &lt;title&gt;&lt;![CDATA[ ]]&gt;&lt;/title&gt; &lt;description&gt;&lt;![CDATA Releases XML]]&gt;&lt;/description&gt; &lt;flastmod date="2014-09-24T16:34:23 CET"/&gt; &lt;/head&gt; &lt;body&gt; &lt;press_releases&gt; &lt;press_release id="1796256" joint_id="383320" language="fr" type="5"&gt; &lt;published date="2014-06-19T11:55:09 CET"/&gt; &lt;categories&gt; &lt;category id="75" label="French" keywords="language"/&gt; &lt;/categories&gt; &lt;headline&gt;&lt;![CDATA[Test Release for Website 3]]&gt;&lt;/headline&gt; &lt;ingress&gt;&lt;/ingress&gt; &lt;location href="http://rthrthrthrtrt.com/test.xml"/&gt; &lt;/press_release&gt; &lt;/press_releases&gt; &lt;/body&gt; &lt;/hexML&gt; </code></pre> <p>I'm trying to get datas through this block of code: </p> <pre><code>cp[cpt, 0] = (from c in xdoc.Descendants("press_release") where (int)c.Attribute("id") == r select c.Element("headline").Value).Single(); cp[cpt, 1] = (from c in xdoc.Descendants("press_release") where (int)c.Attribute("id") == r select (c.Element("published").Attribute("date").Value)).ToString(); cp[cpt, 3] = (from c in xdoc.Descendants("press_release") where (int)c.Attribute("id") == r select c.Element("location").Attribute("href").Value).ToString(); </code></pre> <p>The first instruction returns correctly : Test Release for website 3. On the other hand , the 2 others returns "System.linq.Enumerable+WhereSelectEnumerableIterator'2[system.XML.Linq.Xelement,System.String]" instead.</p> <p>Thank for your help</p> <p>NB: I'm using .NET V3.5</p>