title: Deserializing a string XML and error:There is an error in XML document (1, 2)
body: <p>I need deseriliazing a string XML, but I've a problem.</p>
  
  <pre><code>[XMLRoot]
  public class OP
  {
      [XmlElement]
      public string Auth;
      [XmlElement]
      public string User;
      [XmlElement]
      public string Password;
      [XmlElement]
      public string Client;
      [XmlElement]
      public string DownloadCode;
      [XmlElement]
      public string PartNumber;
      [XmlElement]
      public int FlexPO;
      [XmlArray]
      public string Terminals;
      [XmlElement]
      public string User;            
  }
  
  public void Test()
  {
      var serializer = new XmlSerializer(typeof(OP));
      OP result;
  
      using (TextReader reader = new StringReader(XML))
      {
          result = (OP)serializer.Deserialize(reader);
      }
  
  }
  </code></pre>
  
  <p>This is code and this is the XML:</p>
  
  <pre><code>&lt;CreateManufactoryOrder xmlns="http://tempuri.org/"&gt;
      &lt;op&gt;
          &lt;Auth&gt;
              &lt;User&gt;User&lt;/User&gt;
              &lt;Password&gt;Password&lt;/Password&gt;
          &lt;/Auth&gt;
          &lt;Client&gt;01425787000104&lt;/Client&gt;
          &lt;DownloadCode&gt;0460.0001&lt;/DownloadCode&gt;
          &lt;PartNumber&gt;M268-773-C4-BRA-3&lt;/PartNumber&gt;
          &lt;FlexPO&gt;887614_364&lt;/FlexPO&gt;
          &lt;Terminals&gt;
              &lt;String&gt;529-995-835&lt;/String&gt;
              &lt;String&gt;529-995-836&lt;/String&gt;
              &lt;String&gt;529-995-837&lt;/String&gt;
              &lt;String&gt;529-995-838&lt;/String&gt;
          &lt;/Terminals&gt;
      &lt;/op&gt;
  &lt;/CreateManufactoryOrder&gt;
  </code></pre>
  
  <p>So, when I debug the code return error: There is an error in XML document (1, 2).
  I already try change the code in much ways, but nothing did run.</p>