title: There is an error in XML document (1, 41)
body: <p>When i am doing Deserialize of xml i am getting "There is an error in XML document (1, 41)." . Can anyone tell me about what is the issue is all about.   </p>
  
  <pre><code> public static T DeserializeFromXml&lt;T&gt;(string xml)
          {
              T result;
              XmlSerializer ser = new XmlSerializer(typeof(T));
              using (TextReader tr = new StringReader(xml))
              {
                  result = (T)ser.Deserialize(tr);
              }
              return result;
          }
  </code></pre>
  
  <p>I use this function to do it.</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-16'?&gt;
  &lt;Message&gt;
  &lt;FirstName&gt;Hunt&lt;/FirstName&gt;
  &lt;LastName&gt;DAvid&lt;/LastName&gt;
  &lt;/Message&gt;
  </code></pre>