protected string GetRSSFeed(string ListRssUrl)
{
string rss_text = "";
string ItemTitle = "";
string Url = "";
string description = "";
XPathDocument doc = new XPathDocument(ListRssUrl);
XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator items = nav.Select("//item");
while (items.MoveNext())
{
XPathNavigator navCurrent = items.Current;
ItemTitle = navCurrent.SelectSingleNode("title").InnerXml;
Url = navCurrent.SelectSingleNode("link").InnerXml;
description = navCurrent.SelectSingleNode("description").InnerXml;
}
}
Ads by Google
No comments:
Post a Comment