title: Java: XML to Object (or Array)
body: <p>How could I convert a XML Document to a Java Object (or Array)?
  I readed the XML like this:</p>
  
  <pre><code>DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInstance();
  DocumentBuilder dBuilder = dFactory.newDocumentBuilder();
  
  Document doc = dBuilder.parse(new File("file.xml"));
  doc.getDocumentElement().normalize();
  </code></pre>
  
  <p>Now I want that XML as Object (or Array) but how should I do this?
  Are there any methods or tutorials or classes out there to do that?</p>