How can i get the thumbanail
if you view the source feed its here:
http://feeds.bbci.co.uk/news/world/middle_east/rss.xml
I’ve tried the following but the last part wont work for media:thumbnail
XDocument feedXML = XDocument.Load("http://feeds.bbci.co.uk/news/world/middle_east/rss.xml");
var feeds = from feed in feedXML.Descendants("item")
select new
{
Title = feed.Element("title").Value,
Link = feed.Element("link").Value,
Description = feed.Element("description").Value,
pubDate = feed.Element("pubDate").Value,
guid = feed.Element("guid").Value,
thumbnail = feed.Element("media:thumbnail").Attribute("url").Value
};
What you miss is XNamespace + a null check