title: Deserialize XML element from InnerText and Value attribute
body: <p>I have XML Serializable class with property Name</p>
  
  <pre><code>[Serializable]
  public class Item
  {
      [XmlElement("name")]
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>and I want it to be able to deserialize XML file that I have in two ways:</p>
  
  <pre><code>&lt;item&gt;
      &lt;name&gt;Name&lt;/name&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;item&gt;
      &lt;name value="Name" /&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>The first works fine but what should I do to be able to deserialize the second also with the same class?</p>