It is possible to make different attributes on each element?
<p>Need Help, please! </p>

<p>My code is this done fast:</p>

<pre><code>[XmlRoot("monster")]
public class monster
{
    public List&lt;flag&gt; flags { get; set; }
}

public class flag
{
    [XmlAttribute("summonable")]
    public int summonable { get; set; }

    [XmlAttribute("attackable")]
    public int attackable { get; set; }
}

 public void XML()
 { monster monster = new monster
            {
                flags = new List&lt;flag&gt;
                {
                    new flag() { summonable = 0 },
                    new flag() { attackable = 0 }
                }
            };
 }
</code></pre>

<p>He is coming out well , and I'm using List&lt;> :</p>

<pre><code>&lt;monster&gt;
 &lt;flags&gt;
  &lt;flag summonable="0" attackable="0" /&gt;
  &lt;flag summonable="0" attackable="0" /&gt;
&lt;/flags&gt;
&lt;/monster&gt;
</code></pre>

<p>I need like this:</p>

<pre><code>&lt;monster&gt;
&lt;flags&gt;
    &lt;flag summonable="0"/&gt;
    &lt;flag attackable="0"/&gt;
&lt;/flags&gt;
&lt;/monster&gt;
</code></pre>

<p>Thank everyone who helped me ... Sorry for my bad English</p>