title: parsing xml containing nested tags
body: <p>xml:</p>
  
  <pre><code>&lt;Node name="1"&gt;
     &lt;Node name="2"&gt;
         &lt;Node name="4"&gt;&lt;/Node&gt;
     &lt;/Node&gt;
     &lt;Node name = "3"&gt;
         &lt;Node name="5"&gt;&lt;/Node&gt;
      &lt;/Node&gt;
  &lt;/Node&gt;
  </code></pre>
  
  <p>I want to create the following object in java</p>
  
  <pre><code>Node{
   String name;
   List&lt;Node&gt; nodeList
  }
  </code></pre>
  
  <p>Is there any xml parsing library which could do this. 
  I have tried xstream and simple, but have not been able to figure it out.</p>
  
  <p>Any help would be appreciated.</p>