xmltextreader

Best Way to read rss feed in .net Using C#

巧了我就是萌 提交于 2019-11-26 10:08:41
问题 What is the best way to read RSS feeds ? I am using XmlTextReader to achieve this. Is there any other best way to do it? XmlTextReader reader = new XmlTextReader(strURL); DataSet ds = new DataSet(); ds.ReadXml(reader); After reading the RSS feed using XmlTextReader , is there any way I can populate data to ListItem instead of DataSet ? 回答1: The System.ServiceModel.Syndication namespace has some stuff for you, namely the SyndicationFeed class. This is a fairly simple example. http://blogs.msdn