title: Unmarshalling nested list of xml items using JAXB
body: <p>I've got such xml construction which I need to convert into java objects using JAXB:</p>
  
  <pre><code>&lt;elements&gt;
      &lt;elemet&gt;
          &lt;type&gt;&lt;/type&gt;
          &lt;property1&gt;&lt;/property1&gt;
          &lt;property2&gt;&lt;/property2&gt;
          &lt;items&gt;
              &lt;item&gt;
                  &lt;id&gt;&lt;/id&gt;
                  &lt;name&gt;&lt;/name&gt;
              &lt;/item&gt;
              ...
              &lt;item&gt;
                  &lt;id&gt;&lt;/id&gt;
                  &lt;name&gt;&lt;/name&gt;
              &lt;/item&gt;
          &lt;/items&gt;
      &lt;/element&gt;
  &lt;/elements&gt;
  </code></pre>
  
  <p>I should convert this construction not into element with nested list of items but into several elements one for every item. Here is example of Element class: </p>
  
  <pre><code>class Element {
      Integer type;
      String property1;
      String property2;
      Integer itemId;
      String itemName; 
  }
  </code></pre>
  
  <p>I want to get list of them after unmarshalling. Type, property1 and property2 values should be the same for all list elements.
  Is there any possibility to solve this problem using JAXB?</p>