title: Best way to bind a XML File in Java (NetBeans)
body: <p>i want to bind this simple XML File in my java project:</p>
  
  <pre><code>﻿&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;itg&gt; 
   &lt;reader&gt; 
    &lt;chapter id="1"&gt;
     &lt;subchapter id="1"&gt;&lt;/subchapter&gt; 
     &lt;subchapter id="2"&gt;&lt;/subchapter&gt;
    &lt;/chapter&gt; 
    &lt;chapter id="2"&gt;
     &lt;subchapter id="1"&gt;&lt;/subchapter&gt; 
     &lt;subchapter id="2"&gt;&lt;/subchapter&gt; 
    &lt;/chapter&gt; 
    &lt;chapter id="3"&gt;&lt;/chapter&gt;
   &lt;/reader&gt; 
   &lt;questions&gt; 
   &lt;/questions&gt; 
  &lt;/itg&gt;
  </code></pre>
  
  <p>I use NetBeans, and actually i bind the XML File by parsing the xml file into a ArrayList, an bind the list.
  It works, but it is possible to bind the xml File in a better way? </p>
  
  <p>Thanks!</p>