title: C# XML Serialization XMLElement without tag
body: <p>I have the following class:</p>
  
  <pre><code>[Serializable]
  public class SomeModel
  {
      [XmlElement("CustomerName")]
      public string CustomerName { get; set; }
  
      [XmlElement("")]
      public int CustomerAge { get; set; }
  }
  </code></pre>
  
  <p>Which (when populated with some test data) and Serialized using XmlSerializer.Serialize() results in the following XML:</p>
  
  <pre><code>&lt;SomeModel&gt;
    &lt;CustomerName&gt;John&lt;/CustomerName&gt;
    &lt;CustomerAge&gt;55&lt;/CustomerAge&gt;
  &lt;/SomeModel&gt;
  </code></pre>
  
  <p>What I need to have is:</p>
  
  <pre><code>&lt;SomeModel&gt;
    &lt;CustomerName&gt;John&lt;/CustomerName&gt;
     55
  &lt;/SomeModel&gt;
  </code></pre>
  
  <p>Meaning for the 2nd xmlelement, it should not have its own tag. Is this even possible? Thank you.</p>