title: How to omit C# object property name node in XML Serialization
body: <p>My model classes are:</p>
  
  <pre><code>public class Group
  {
     public Employee Employee {get;set;}
  }
  public class Employee {
     public string Name {get;set;}
  }
  </code></pre>
  
  <p>so after serialization my xml looks like this:</p>
  
  <pre><code>&lt;Group&gt;
    &lt;Employee&gt;
        &lt;Name&gt;Haley&lt;/Name&gt;
    &lt;/Employee&gt;
  &lt;/Group&gt;
  </code></pre>
  
  <p>but I would like it to be:</p>
  
  <pre><code>&lt;Group&gt;
    &lt;Name&gt;Haley&lt;/Name&gt;
  &lt;/Group&gt;
  </code></pre>
  
  <p>So is there any attribute etc. to achieve that? I know I can do this using some code, but would be nice if there is some simplier solution. I saw the solution for lists and arrays (using [XmlElement] attribute), but looks like it doesn't work for non collection properties.</p>