.Net has SydicationFeed for this purpose. A simple sample as below.
XmlReader r = XmlReader.Create("news.google.com/?output=rss");
SyndicationFeed feed = SyndicationFeed.Load(r);
r.Close();
foreach (SyndicationItem item in feed.Items)
{
var str = string.Format("<a href='{0}'>{1}</a>", item.Links[0].Uri, item.Title.Text);
}
No comments:
Post a Comment