title: Loading xml with encoding UTF 16 using XDocument
body: <p>I am trying to read the xml document using XDocument method .
  but i am getting an error when xml has</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-16"?&gt;
  </code></pre>
  
  <p>When i removed encoding manually.It works perfectly.</p>
  
  <p>I am getting error " <strong>There is no Unicode byte order mark. Cannot switch to Unicode.</strong> "</p>
  
  <p>i tried searching and i landed up here--></p>
  
  <p><a href="https://stackoverflow.com/questions/310669/why-does-c-xmldocument-loadxmlstring-fail-when-an-xml-header-is-included">Why does C# XmlDocument.LoadXml(string) fail when an XML header is included?</a></p>
  
  <p>But could not  solve my problem.</p>
  
  <p>My code :</p>
  
  <pre><code>XDocument xdoc = XDocument.Load(path);
  </code></pre>
  
  <p>Any suggestions ??</p>
  
  <p>thank you.</p>