Quantcast
Channel: How can work online with RSS feed URL in Mono for Android? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Omid Mafakher for How can work online with RSS feed URL in Mono for Android?

$
0
0
        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();

        }

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>