Using Linq To XML, how can I get the space_id value (720) from the xml below?
I am reading this but I think the namespace in the xml is my stumbling block.
<r25:spaces xmlns:r25="http://www.collegenet.com/r25" pubdate="2009-05-05T12:18:18-04:00">
<r25:space id="VE1QOjRhMDAyZThhXzFfMWRkNGY4MA==" crc="" status="new">
<r25:space_id>720</r25:space_id>
<r25:space_name>SPACE_720</r25:space_name>
<r25:max_capacity>0</r25:max_capacity>
</r25:space>
</r25:spaces>
EDIT
Here's where I am:
private int GetIDFromXML(string xml)
{
XDocument xDoc = XDocument.Parse(xml);
// hmmm....
}