title: System.UriFormatException: 'Invalid URI: The Uri scheme is too long.'
body: <p>I working on a small project where I am trying to read a response from a websocket and trying to load it in xmlDoc for further operations. </p>
  
  <p>The following are the snippet of my code, where i get the "System.UriFormatException". The response is of XMLType</p>
  
  <pre><code>        UTF8Encoding encoder = new UTF8Encoding();
          byte[] buffer;
  
          buffer = encoder.GetBytes("&lt;XML Response from a websocket&gt;");
  
          string xml = Encoding.UTF8.GetString(buffer);
  
          XmlDocument xmlDoc = new XmlDocument();
  
          xmlDoc.Load(xml);
  </code></pre>
  
  <p>Is there any way by which we could overcome the exception, or what am i doing wrong in this code.</p>