I want to parse atom feeds of youtube channel. Here is the link of that rss atom feeds.
http://gdata.youtube.com/feeds/api/users/cokestudio/uploads?orderby=updated
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());
I am getting an error which says invalid character or hexcode ":"
. I want to get elements from tag: <media:group>
Please suggest.