title: JAXB to map XML element to DTO
body: <p>Can we map XML like</p>
  
  <pre><code>&lt;root&gt;
    &lt;tagA&gt;
      &lt;prop&gt;111&lt;/prop&gt;
      &lt;prop&gt;222&lt;/prop&gt;
      &lt;prop&gt;333&lt;/prop&gt;
      &lt;prop&gt;444&lt;/prop&gt;
    &lt;/tagA&gt;
    &lt;tagB&gt;
      &lt;prop&gt;555&lt;/prop&gt;
      &lt;prop&gt;666&lt;/prop&gt;
    &lt;/tagB&gt;
    &lt;tagC&gt;
      &lt;prop&gt;777&lt;/prop&gt;
    &lt;/tagC&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>class MyDto {
    private List&lt;TagA&gt; tagAProps;
    private List&lt;TagB&gt; tagBProps;
    private List&lt;TagC&gt; tagCProps;
  }
  </code></pre>
  
  <p>using JAXB? I am not sure how to use annotation to directly map elements to collection type. Straight mapping into POJO has five different classes (Root, TagA, TagB, TagC and Prop). Of which TagA, TagB and TagC being all similar. So I want to have this minimum number of class.</p>