title: Serialize a list of objects without the parent tag
body: <p>I have a list myListOfItems containing 5 items. All I want to do is to create an xml where all items are displayed like that:</p>
  
  <pre><code>&lt;something&gt;
    &lt;someValue/&gt;
  &lt;/something&gt;
  
  &lt;item&gt;...&lt;/item&gt;
  &lt;item&gt;...&lt;/item&gt;
  &lt;item&gt;...&lt;/item&gt;
  &lt;item&gt;...&lt;/item&gt;
  &lt;item&gt;...&lt;/item&gt;
  
  &lt;somethingElse&gt;
    &lt;someValue/&gt;
  &lt;/somethingElse&gt;
  </code></pre>
  
  <p>and so far I have this:</p>
  
  <pre><code>&lt;something&gt;
      &lt;someValue/&gt;
  &lt;/something&gt;
  
  &lt;myListOfItems&gt;
    &lt;item&gt;...&lt;/item&gt;
    &lt;item&gt;...&lt;/item&gt;
    &lt;item&gt;...&lt;/item&gt;
    &lt;item&gt;...&lt;/item&gt;
    &lt;item&gt;...&lt;/item&gt;
  &lt;/myListOfItems&gt;
  
  &lt;somethingElse&gt;
    &lt;someValue /&gt;
  &lt;/somethingElse&gt;
  </code></pre>
  
  <p>And this is how I do it:</p>
  
  <pre><code>[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=34)]
  [System.Xml.Serialization.XmlArrayItemAttribute("passengerDetails", IsNullable=false)]
  public List&lt;Item&gt; myListOfItems {
      get {
          return this.myListOfItemsField;
      }
      set {
          this.myListOfItemsField = value;
          this.RaisePropertyChanged("myListOfItems");
      }
  }
  </code></pre>
  
  <p>How can I do so the parent myListOfItems tag is omitted?</p>
  
  <p>Edit:
  As for the topics you mentioned:
  If I change the XmlArrayItemAttribute to XmlElement I get this</p>
  
  <blockquote>
    <p>InvalidOperationException: XmlElement, XmlText, and XmlAnyElement cannot be used in conjunction with XmlAttribute, XmlAnyAttribute, XmlArray, or XmlArrayItem.</p>
  </blockquote>
  
  <p>And when I comment out the XmlArrayAttribute portion I get this</p>
  
  <blockquote>
    <p>InvalidOperationException: Inconsistent sequencing: if used on one of the class's members, the 'Order' property is required on all particle-like members, please explicitly set 'Order' using XmlElement, XmlAnyElement or XmlArray custom attribute on class member 'item'.</p>
  </blockquote>
  
  <p>Now how can I set order for multiple items?</p>