0
나는 MVC와 함께 RSS를 사용하여 wired.com에서 피드를 얻고있다. 하지만 나는 모두 먹일 필요가 없다. 나는 처음 다섯 개의 먹이가 필요하다. 어떻게해야합니까?RSS get First Five Item
WebClient wclient = new WebClient();
string RSSData = wclient.DownloadString("https://www.wired.com/feed/rss");
return View();
Document xml = XDocument.Parse(RSSData);
var RSSFeedData = (from x in xml.Descendants("item")
select new RSSFeed
{
Title = ((string)x.Element("title")),
Link = ((string)x.Element("link"))
});