title: How do I Set XmlArrayItem Element name for a List<Custom> implementation?
body: <p>I want to create a custom XML structure as follows:</p>
  
  <pre><code>&lt;Hotels&gt;
      &lt;Hotel /&gt;
  &lt;/Hotels&gt;
  </code></pre>
  
  <p>I've created an implementation of <code>List</code> just to be able to do this. My code is as follows:</p>
  
  <pre><code>[XmlRootAttribute(ElementName="Hotels")]
  public class HotelList: List&lt;HotelBasic&gt;
  </code></pre>
  
  <p>Because the class that List holds is not named <code>Hotel</code> but <code>HotelBasic</code> my xml is like</p>
  
  <pre><code>&lt;Hotels&gt;
     &lt;HotelBasic /&gt;
  &lt;/Hotels&gt;
  </code></pre>
  
  <p>How do I fix this without having to implement <code>ISerializable</code> or <code>IEnumerable</code>?</p>