Search code examples
androidxamarinrssfeed

Download an xml file rss feed Xamarin


I have a file in my project called xamarin home where it is empty. I want to download my rss feed and subscribe to the inicio.xml file with the rss feed materials

imagem

enter image description here

rss feed

http://pox.globo.com/rss/g1/brasil/


Solution

  • XDocument rss = System.Xml.Linq.XDocument.Load(url);
    
    rss.Save(filepath);
    

    Note that the contents of an Android app package are not writable - you will need to write to one of the user writable documents folders, or external storage.