get thumbnail from rss feed linq, xml

patsrule327

New Member
How can i get the thumbanailif you view the source feed its here:http://feeds.bbci.co.uk/news/world/middle_east/rss.xmlI've tried the following but the last part wont work for media:thumbnail\[code\] 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 };\[/code\]
 
Back
Top