title: @XmlElementWrapper isn't working for me
body: <p>this is my definition that don't retrieve the list of elements in the wrapped elements:</p>
  
  <pre class="lang-java prettyprint-override"><code>@XmlElementWrapper(name = "channels")
  @XmlElement(name = "channel")
  private ArrayList&lt;Channel&gt;  expChannels;
  
  public ArrayList&lt;Channel&gt; getChannels() {
     return this.expChannels;
  }
  
  public void setChannels(ArrayList&lt;Channel&gt; listOfChannels) {
     this.expChannels = listOfChannels;
  }
  </code></pre>
  
  <p>And this is the declaration of Channel model object:</p>
  
  <pre class="lang-java prettyprint-override"><code>@XmlRootElement
  public class Channel {
  
      //Channel() {}
  
      @XmlAttribute(name = "id")
      private Integer channelId;
  
      getters/setters
  </code></pre>
  
  <p>When I get data from xml, any channel is retrieved.</p>
  
  <p>I've achived to work with an intermediate class Channels, changing the code to:</p>
  
  <pre class="lang-java prettyprint-override"><code>private Channels expChannels;
  
  @XmlElement(name = "channels")
  public Channels getChannels() {
      return this.expChannels;
  }
  
  public void setChannels(Channels listOfChannels) {
     this.expChannels = listOfChannels;
  }
  </code></pre>
  
  <p>and defining Channels:</p>
  
  <pre class="lang-java prettyprint-override"><code>@XmlRootElement(name="channels")
  public class Channels {
  
      private List&lt;Channel&gt; expChannels = new ArrayList&lt;Channel&gt;();
  
      @XmlElement(name = "channel")
  
      getters/setters
  </code></pre>
  
  <p>This is the structure of XML file:</p>
  
  <pre><code>&lt;experiment xmlns="experiment"&gt;
      &lt;name&gt;Test Experiment&lt;/name&gt;
      &lt;file&gt;ExperimentTemplate.xml&lt;/file&gt;
      &lt;channels&gt;  &lt;!-- List of channel's --&gt;
          &lt;channel&gt;
              &lt;id&gt;0&lt;/id&gt;
              &lt;name&gt;Channel 1&lt;/name&gt;
              &lt;description&gt;Channel 1 description&lt;/description&gt;
          &lt;/channel&gt;
          &lt;channel&gt;
              &lt;id&gt;1&lt;/id&gt;
              &lt;name&gt;Channel 2&lt;/name&gt;
              &lt;description&gt;Channel 1 description&lt;/description&gt;
          &lt;/channel&gt;
      &lt;/channels&gt;
  &lt;/experiment&gt;
  </code></pre>
  
  <p>Can I avoid the use of Channels class?</p>