title: How to unmarshall repeated nested classes with JAXB?
body: <p>How can I instruct JAXB to process this ?</p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;root&gt;
   &lt;parent&gt;
      &lt;child id="1" name="foo" /&gt;
   &lt;/parent&gt;
   &lt;parent&gt;
      &lt;child id="3" name="foo2" /&gt;
   &lt;/parent&gt;
   &lt;parent&gt;
      &lt;child id="4" name="bar2" /&gt;
   &lt;/parent&gt;
   &lt;parent&gt;
      &lt;child id="2" name="bar" /&gt;
   &lt;/parent&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p><strong>Root.java</strong></p>
  
  <pre><code>@XmlRootElement
  public class Root {
     @XmlElement(name="parent/child")
     List&lt;Child&gt; allChildren;
  }
  </code></pre>
  
  <p>This doesn't work ... allChildren is empty.</p>