When I create a normal application or class library I can use XDocument.Load(some xml file on the internet) to download and then parse the XML within that file.
However, I'm writing code for a PCL and it seems XDocument does not have the option of a string URI. The only options are System.IO.Stream, System.IO.TextReader, and System.Xml.XmlReader.
How should I proceed to be able to access an XML file on the internet? Should I make use of the new-ish HttpClient and use a stream from that somehow?
No comments:
Post a Comment