RSS.NET

来源:互联网 发布:大数据认证有多少 编辑:程序博客网 时间:2024/05/19 03:27

RSS.NET是一个开源的.net类库,用来解析和生成RSS Feeds.
例子:
读一个RSS feeds
string url ="http://sourceforge.net/export/rss2_sfnews.php?feed"; RssFeed feed = RssFeed.Read(url);

将listbox绑定到一个频道
RssChannel channel = (RssChannel)feed.Channels[0]; listBox.DataSource = channel.Items;

更多的示例在:http://www.rssdotnet.com/documents/code_examples.html