title: Jacskon XML serialization of a list
body: <p>EDIT: I am trying to serialise to XML markup from Java objects.</p>
  
  <p>I am struggling to serialise some XML from a List of size N of Integers using Jackson.</p>
  
  <p>I want to output the following XML from a list of integers of variable length [9, 2, ... , 7].</p>
  
  <pre><code>&lt;tagName&gt;
     &lt;thing1&gt;9&lt;/thing1&gt;
     &lt;thing2&gt;2&lt;/thing2&gt;
     ...
     &lt;thingN&gt;7&lt;/thingN&gt;
  &lt;tagName&gt;
  </code></pre>
  
  <p>I can't find any resource on here for dealing with deserialising lists.</p>
  
  <p>The closest I have managed to get is         </p>
  
  <pre><code>@JacksonXmlProperty(localName = "thing")
  private List&lt;Integer&gt; thingList;
  </code></pre>
  
  <p>And I can't figure out how to add a counter to the local name for each member of the list.</p>
  
  <p>Any help would be appreciated, thank you!</p>