s exceções com a análise de data e hora no feed RSS usam SyndicationFeed em c #
Estou tentando analisar RSS2, Atom feeds usando objetos SyndicationFeed. Mas estou recebendo XmlExceptions ao analisar o campo DateTime como pubDate
2012-01-17 08: 01: 06
public static List<SyndicationItem> getRssData(string url)
{
List<SyndicationItem> list = new List<SyndicationItem>();
WebClient client = new WebClient();
try
{
SyndicationFeed feed = SyndicationFeed.Load(XmlReader.Create(url));
list = (from item in feed.Items select item).ToList();
}
catch (Exception e)
{
throw e;
}
return list;
}
O link da URLhttp: //news.163.com/special/00011K6L/rss_newstop.xm
<item id="2">
<title>...</title>
<link>...</link>
<description>......</description>
<pubDate>2012-01-17 12:09:29</pubDate><-----Exception
</item>
Existe uma maneira melhor de conseguir isso? Por favor ajude. Obrigado