Hi guys, how can I get data from rss feed for my application in the simplest way. I will use this rss feed: https://www.steamprices.com/public/rss/pricetracker_us_discounts.xml
Who can help me ?
I'm not sure if it's the best way, but I have an example here.
I have plenty of samples: essentially https://github.com/jamesmontemagno/PlanetXamarin or https://github.com/jamesmontemagno/hanselman.forms
private async Task<List<RSSFeedItem>> ParseFeed(string rss)
return await Task.Run(() =>
var xdoc = XDocument.Parse(rss);
var id = 0;
return (from item in xdoc.Descendants("item")
select new RSSFeedItem
Title = (string)item.Element("title"),
Description = (string)item.Element("description"),
Link = (string)item.Element("link"),
PublishDate = (string)item.Element("pubDate"),
AuthorEmail = (string)item.Element("author"),
Id = id++
@JamesMontemagno Is System.Xml.Linq.XDocument usable on a Shared project? I can't seem to find/add a reference it.
Nvm I was missing this NuGet package: System.Xml.XDocument
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies