title: xstream, how to serialize a list to xml
body: <p>I am using xstream and trying to serialize a List to XML.  I need an output structure like</p>
  
  <pre><code>&lt;Employees&gt;
    &lt;Employee&gt;&lt;/Employee&gt;
    &lt;Employee&gt;&lt;/Employee&gt;
    &lt;Employee&gt;&lt;/Employee&gt;
  &lt;/Employees&gt;
  </code></pre>
  
  <p>The object to serialize would be something like an </p>
  
  <pre><code> List&lt;Employee&gt; 
  </code></pre>
  
  <p>or a class Employees.  I've tried to create an Employees as </p>
  
  <pre><code>public class Employees extends ArrayList&lt;Employee&gt;(){}
  </code></pre>
  
  <p>and various other approaches but can't get it to serialize as I need it.  Is there an easy way to do such a thing?</p>
  
  <p>My question is similar to <a href="https://stackoverflow.com/questions/3136234/xstream-root-as-a-collection-of-objects">XStream - Root as a collection of objects</a> but I'd like to do it without a wrapper object.</p>