title: xml Serialization and Deserialization (hide one node header)
body: <p>I have an XML file and I need to deserialize it.  Without bypassing all the nodes, just deserilizing the XML file to an object.</p>
  
  <p>Is it possible to hide from the result ActionGetSiteResultData or only one way 
  use custom serialization/deserialization? </p>
  
  <p>Classes:</p>
  
  <pre><code>// root
  public Result Result { get; set; }
  // rows
  public class Result 
  {
    public List&lt;ResultData&gt; Data { get; set; }
  }
  //item
  public class ResultData
  {
    [XmlElement(ElementName = "gen_info")]
    public GenInfo GenInfo { get; set; }
  
    [XmlElement(ElementName = "hosting")]
     public Hosting Hosting { get; set; }
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>  &lt;Result&gt;
      &lt;Id&gt;1&lt;/Id&gt;
      &lt;Data&gt;
            &lt;ResultData&gt; &lt;--- REMOVE THIS
               &lt;gen_info&gt;
                  &lt;ascii-name&gt;sadsad&lt;/ascii-name&gt;
                &lt;/gen_info&gt;
                &lt;hosting/&gt;
            &lt;/ResultData&gt; &lt;--- REMOVE THIS
      &lt;/Data&gt;
    &lt;/Result&gt;
  </code></pre>
  
  <p>Need:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Result&gt;
      &lt;Id&gt;1&lt;/Id&gt;
      &lt;Data&gt;
          &lt;gen_info&gt;
              &lt;ascii-name&gt;sadsad&lt;/ascii-name&gt;
           &lt;/gen_info&gt;
           &lt;hosting/&gt;
      &lt;/Data&gt;
    &lt;/Result&gt;
  &lt;Result&gt;
   &lt;Id&gt;2&lt;/Id&gt;
   &lt;Data&gt;
     &lt;gen_info&gt;
        &lt;ascii-name&gt;sadsad2&lt;/ascii-name&gt;
      &lt;/gen_info&gt;
      &lt;hosting/&gt;
    &lt;/Data&gt;
   &lt;/Result&gt;
  </code></pre>