title: How to get elements value with Linq To XML
body: <p>Using Linq To XML, how can I get the space_id value (720) from the xml below?</p>
  <p>I am reading <a href="http://msdn.microsoft.com/en-us/library/bb308960.aspx" rel="nofollow noreferrer">this</a> but I think the namespace in the xml is my stumbling block.</p>
  <pre><code>&lt;r25:spaces xmlns:r25=&quot;http://www.collegenet.com/r25&quot; pubdate=&quot;2009-05-05T12:18:18-04:00&quot;&gt;
    &lt;r25:space id=&quot;VE1QOjRhMDAyZThhXzFfMWRkNGY4MA==&quot; crc=&quot;&quot; status=&quot;new&quot;&gt;
      &lt;r25:space_id&gt;720&lt;/r25:space_id&gt;
      &lt;r25:space_name&gt;SPACE_720&lt;/r25:space_name&gt;
      &lt;r25:max_capacity&gt;0&lt;/r25:max_capacity&gt;
    &lt;/r25:space&gt;
  &lt;/r25:spaces&gt;
  </code></pre>
  <h2>EDIT</h2>
  <p>Here's where I am:</p>
  <pre><code>private int GetIDFromXML(string xml)
      {
          XDocument xDoc = XDocument.Parse(xml);
  
          // hmmm....
      }
  </code></pre>