XML Serialization C#, duplicate nodes
<p>This is my class structure</p>

<pre><code> [Serializable]
public class OrderXML
{
    [XmlArray("GROUPLIST")]
    public Group[] GroupList { get; set; }
}

[Serializable]
public class Group
{
    [XmlArray(ElementName = "GROUP")]
    [XmlArrayItem(ElementName = "SELLER", Type = typeof(Seller))]
    public Seller[] Sellers { get; set; }
}
</code></pre>

<p>The XML it is generating is </p>

<pre><code>&lt;GROUPLIST&gt;
  &lt;Group&gt;
    &lt;GROUP&gt;
      &lt;SELLER SELLERREF="1"&gt;
        ...
      &lt;/SELLER&gt;
      &lt;SELLER SELLERREF="2"&gt;
        ...
      &lt;/SELLER&gt;
    &lt;/GROUP&gt;
  &lt;/Group&gt;
  &lt;Group&gt;
    &lt;GROUP&gt;
      &lt;SELLER SELLERREF="1"&gt;
        ...
      &lt;/SELLER&gt;
      &lt;SELLER SELLERREF="2"&gt;
       ...
      &lt;/SELLER&gt;
    &lt;/GROUP&gt;
  &lt;/Group&gt;
&lt;/GROUPLIST&gt;
</code></pre>

<p>The XML has duplicate <strong>GROUP</strong> and <strong>Group</strong> Tag, I am trying to remove that, I have checked the others answers mentioned in StackOverflow but they are not working in my case. Kindly help.</p>

<p>I am using XMLSerialization of C#</p>

<p>The answer by HimBromBeere is generating the XML</p>

<pre><code>&lt;GROUPLIST&gt;
      &lt;Group&gt;
        &lt;Sellers&gt;
          &lt;SELLER SELLERREF="1"&gt;
            ...
          &lt;/SELLER&gt;
          &lt;SELLER SELLERREF="2"&gt;
            ...
          &lt;/SELLER&gt;
        &lt;/Sellers&gt;
      &lt;/Group&gt;
      &lt;Group&gt;
        &lt;Sellers&gt;
          &lt;SELLER SELLERREF="1"&gt;
            ...
          &lt;/SELLER&gt;
          &lt;SELLER SELLERREF="2"&gt;
            ...
          &lt;/SELLER&gt;
        &lt;/Sellers&gt;
      &lt;/Group&gt;
    &lt;/GROUPLIST&gt;
</code></pre>

<p>I don't want the <code>&lt;Sellers&gt;</code> tag there</p>