title: Jackson List Help - Java
body: <p>I am trying to create some xml with Jackson and I cannot get the list to display like I need.  I am getting:</p>
  
  <pre><code>&lt;Messages&gt;
    &lt;Messages&gt;...&lt;/Messages&gt;
    &lt;Messages&gt;...&lt;/Messages&gt;
  &lt;/Messages&gt;
  </code></pre>
  
  <p>I want it to look like:</p>
  
  <pre><code>&lt;Messages&gt;
    &lt;Message&gt;...&lt;/Message&gt;
    &lt;Message&gt;...&lt;/Message&gt;
  &lt;/Messages&gt;
  </code></pre>
  
  <p>My code looks like this:</p>
  
  <pre><code>  public List&lt;Message&gt; messages;
  </code></pre>
  
  <p>Whatever I name that variable, is the same name all of the child elements get.  I am sure this has been answered elsewhere, but I cannot find anything that will take care of my issue.  Thanks for the help.</p>