title: XML deserialization fail
body: <p>I am deserializing the following XML file. Using XML serializer with VSTS 2008 + C# + .Net 3.5.</p>
  
  <p>Here is the XML file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Person&gt;&lt;Name&gt;=b?olu&lt;/Name&gt;&lt;/Person&gt;
  </code></pre>
  
  <p>Here is the screen snapshot for the display of the XML file and binary format of the XML file,</p>
  
  <p><a href="https://i.stack.imgur.com/NRCPD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NRCPD.jpg" alt="alt text"></a>
  </p>
  
  <p><a href="https://i.stack.imgur.com/ca4uL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ca4uL.jpg" alt="alt text"></a>
  </p>
  
  <p>If there are some solutions to accept such characters, it will be great! Since my XML file is big, and if such characters are really invalid and should be filtered, I want to keep remaining content of XML file after deserialization.</p>
  
  <p>Currently XML deserialization fails with InvalidOperationException and the whole XML file information will be lost.</p>
  
  <p>Actually, when open this XML file in VSTS, there is error like this, Error  1   Character '?', hexadecimal value 0xffff is illegal in XML documents. I am confused since in the binary form, there is no 0xffff values.</p>
  
  <p>Any solutions or ideas?</p>
  
  <p>EDIT1: here is my code which is used to deserialize XML file,</p>
  
  <pre><code>    static void Foo()
      {
          XmlSerializer s = new XmlSerializer(typeof(Person));
          StreamReader file = new StreamReader("bug.xml");
          s.Deserialize(file);
      }
  
  public class Person
  {
      public string Name;
  }
  </code></pre>