title: Got error "There is an error in xml document (1 40)" while doing DeSerialization of xml
body: <p>I have an asp.net 2.0 website.
  I am using Deserialize method to deserialize the xml.
  I got this error</p>
  
  <blockquote>
    <p>"There is an error in xml document (1 40)"  </p>
  </blockquote>
  
  <pre><code> public List&lt;Test_XML&gt; DeSerializeObject(string pstrXML)
  {
     List&lt;Test_XML&gt; _obj = new List&lt;Test_XML&gt;();
      try
      {
          if (!string.IsNullOrEmpty(pstrXML))
          {
              XmlSerializer _xmlSerializer = new XmlSerializer(typeof(List&lt;Test_XML&gt;));
              StringReader _strReader = new StringReader(pstrXML);
              _obj = (List&lt;Test_XML&gt;)_xmlSerializer.Deserialize(_strReader);
          }
          return _obj;
      }
      catch (Exception e)
      { 
          throw e; 
      }
      finally
      {
          _obj = null; 
      }
  }
  </code></pre>