title: Retrieve remote xml file in net-core console app
body: <p>I'm porting a small .net app to a .net-core console project. In my old project I have:</p>
  
  <pre><code>XDocument xml = XDocument.Load(@"c:\path\file.xml")
  IEnumerable&lt;Car&gt; cars = from car in xml.Root.Descendants("car")
  select new Car
  {
      CarId = car.Element("Car_ID")?.Value,
      Make = car.Element("Car_Make")?.Value,
      Model = car.Element("Car_Model")?.Value
  }
  // do something with cars list
  </code></pre>
  
  <p>Works fine in .net-core as well, however in my .net-core project we need to work with remote xml files. If I use a Url instead of a local file path, like so:</p>
  
  <pre><code>XDocument xml = XDocument.Load(@"https://website/file.xml")
  </code></pre>
  
  <p>... then I get an error:</p>
  
  <pre><code>The Uri parameter must be a file system relative or absolute path
  </code></pre>
  
  <p>I've found lots of samples using XmlDocument and file-streams, but they either don't compile in .net-core, or aren't complete enough to help me out.</p>
  
  <p>What is required to make this work?</p>
  
  <p>*edited to add more detail</p>