using (var client = new System.Net.WebClient())
{
var all = client.DownloadString(new Uri("http://www.yoursite.com/rss"));
var doc = XElement.Parse(all);
var items = (from el in doc.Descendants("item")
select new Models.RssItem
{
Title = el.Element("title").Value,
Description = el.Element("description").Value,
Url = el.Element("link").Value,
}).ToList();
var d = new AlertDialog.Builder(this);
d.SetMessage(items.Count.ToString());
d.Show();
}
↧
Answer by Omid Mafakher for How can work online with RSS feed URL in Mono for Android?
↧