3
나는 youtube 채널의 원자 피드를 분석하고 싶다. 여기에 그 rss 원자 피드의 링크가 있습니다. http://gdata.youtube.com/feeds/api/users/cokestudio/uploads?orderby=updatedparse youtube feeds with linq
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());
나는invalid character or hexcode ":"
를 말한다 오류를 얻고있다. 태그에서 요소를 가져오고 싶습니다.<media:group>
제안 해주십시오.
감사합니다. Jeff Mercado .. –