title: Reading root element from XML using C# and LINQ
body: <p>I'm reading an XML feed with the following format:</p>
  
  <pre><code>&lt;run workoutType="standard" id="1"&gt;
      &lt;startTime&gt;2012-01-30T18:24:56+00:00&lt;/startTime&gt;
  &lt;/run&gt;
  &lt;run workoutType="standard" id="2"&gt;
      &lt;startTime&gt;2012-01-30T18:24:56+00:00&lt;/startTime&gt;
  &lt;/run&gt;
  </code></pre>
  
  <p>The following code snippet allows me to return all "runs" in the list and successfully maps the startTime field to my object.</p>
  
  <pre><code>using (XmlReader xtr = XmlTextReader.Create(string.Format("{0}?userID={1}", url, id), xrs))
  {
      XDocument xd = XDocument.Load(xtr);
      return (from entry in xd.Descendants().Where(x =&gt; x.Name == "run")
              select new Run
              {
                  startTime = (DateTime)entry.Element("startTime")
              }).OrderByDescending(x =&gt; x.startTime).ToList();
      xtr.Close();
  }
  </code></pre>
  
  <p>I also need to map the <code>run id</code> field to my object.</p>
  
  <p>How do I access this property's value?</p>