Parse youtube feeds with linq

mambojoomla

New Member
I want to parse atom feeds of youtube channel.Here is the link of that rss atom feeds.\[quote\] http://gdata.youtube.com/feeds/api/users/cokestudio/uploads?orderby=updated\[/quote\]\[code\] List<YTFeeds> lstYT = new List<YTFeeds>(); XDocument xDocumentYT = XDocument.Load(Server.MapPath("XMLFile.xml")); XNamespace xmlns = "http://www.w3.org/2005/Atom";lstYT.AddRange((from entry in xDocumentYT.Descendants(xmlns + "entry").Elements(xmlns + "media:group") select new YTFeeds { Title = entry.Element(xmlns + "media:title").Value, Description = entry.Element(xmlns + "media:description").Value, Video = entry.Elements(xmlns + "media:player").ElementAt(1).Attribute("url").Value, Image = entry.Elements(xmlns + "media:thumbnail").ElementAt(1).Attribute("url").Value }).ToList());\[/code\]I am getting error. It says invalid charachter or hexcode ":" I want to get elements from this tag \[code\]<media:group>\[/code\] Please suggest..
 
Back
Top