Reading Data from a namespace-prefixed element
My code looks something like this:
var itemsQuery =
from
xItem in RSSConsumer.GetItems()
orderby DateTime.Parse( xItem.Element("pubDate").Value) descending
select new {
Link = xItem.Element("link").Value,
Title = xItem.Element("title").Value,
Description = xItem.Element("description").Value,
PubDate = xItem.Element("pubDate").Value,
Creator = xItem.Element("Creator").Value
};
when I change the last line from "Creator" to "dc:Creator", I get an error indicating that I can't use the ":" character in an element name. I've tried trying an XName and an XNamespace and doing the concatenation thing, but xItem.Element( ... ) still fails.
Is there an XLinq query I can use inline that will give me the element named "Creator" without regard for its namespace? I know I used to be able to do that using System.Xml and an XPath query that just gave me the node who's name() was equal to what I was looking for.
Any thoughts?

