BBC에서 RSS 피드를 구문 분석하려고하지만 아무 것도 반환하지 않습니다! RSS 피드BBC에서 RSS 피드를 읽으려고합니다.
http://www.bbc.co.uk/arabic/middleeast/index.xml
내 코드
var item = (from descendant in document.Descendants("entry")
select new NewsItem()
{
link = descendant.Element("link").Attribute("href").Value,
description = descendant.Element("summary").Value,
title = descendant.Element("title").Value,
image = " " // entry > link > img media:content > second media:thumbnail > url attribute
entry_date = DateTime.Now,
category = " " // second descendant.Elements("category") > label
}).ToList();
RSS 라이브러리를 사용하지 않는 이유는 무엇입니까? https://www.nuget.org/packages?q=rss – Aron
@Aron 라이브러리는 필요하지 않습니다. 이미 .NET 프레임 워크에 내장되어 있습니다. [이전 답변] (http://stackoverflow.com/a/7010922/109702). inbuilt 클래스가 무거운 작업을하게하십시오. – slugster
SyndicationFeed를 사용하고 있었지만 RSS 피드에서 날짜를 게시하려고 할 때 오류가 발생합니다 .. – dotfreelancer