测试rss地址是: http://news.baidu.com/ns?word=%CA%D6%BB%FA&tn=newsrss&sr=0&cl=2&rn=20&ct=0Uri uri = new Uri("http://www.codeproject.com/webservices/articlerss.aspx?cat=1");RssChannel myRssChannel = new RssChannel(uri);// write the channel title to the standard output stream.System.Console.WriteLine(myRssChannel.Title);// write each item's title to the standard output stream.foreach(Raccoom.Xml.RssItem item in myRssChannel.Items){ System.Console.WriteLine(item.Title);}
评论