title: XML xsi:nil="true" value set but returning null
body: <p>I have given XML doc:</p>
  
  <pre><code>&lt;root&gt;
     &lt;element xsi:nil="true" /&gt;
  &lt;root&gt;
  </code></pre>
  
  <p>Later on in code the element gets updated to:</p>
  
  <pre><code>&lt;root&gt;
    &lt;element xsi:nil="true"&gt;some data&lt;/element&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>No whey I try to deserialize the element in to an object the "element" property is null. What am I doing wrong?</p>
  
  <p>Here is the C# code I use to deserialize:</p>
  
  <pre><code>XmlSerializer reader = new XmlSerializer(typeof(MyObject));
  StreamReader srFile = new StreamReader(strFilePath);
  MyObject obj = (MyObject)reader.Deserialize(srFile);
  
  [Serializable]
  public class My Object
  {
    [XmlElement(IsNullable = true)]
    public string Element {get; set;}
  }
  </code></pre>