title: XML in Blazor... Wasm: [System.PlatformNotSupportedException] Operation is not supported on this platform
body: <p>I'm trying to do some XML stuff in Blazor and all I can get is 2 error messages.
  The first thing I try (using a local XML file) can't even find it...</p>
  
  <pre><code>string xmlPath = "C:\\Users\\me\\Desktop\\users.xml";
  XElement contacts = XElement.Load(xmlPath);
  Console.WriteLine(contacts);
  </code></pre>
  
  <p>This gives an error saying WASM: </p>
  
  <blockquote>
    <p>[System.IO.FileNotFoundException] Could not find file "/C:\Users\me\Desktop\users.xml"</p>
  </blockquote>
  
  <p>It has added a / at the start of the path.</p>
  
  <p>Or if I use a random online XML, I get the 'not supported' error.  For example...</p>
  
  <pre><code>XmlDocument xmlDocument = new XmlDocument();
  xmlDocument.Load("https://www.w3schools.com/xml/note.xml");
  </code></pre>
  
  <p>The full error displayed in Wasm: </p>
  
  <blockquote>
    <p>[System.PlatformNotSupportedException] Operation is not supported on this platform.</p>
  </blockquote>
  
  <p>Is it just the case that Web Assembly doesn't support the XML classes or something like that? </p>