How could I convert a XML Document to a Java Object (or Array)? I readed the XML like this:
DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dFactory.newDocumentBuilder();
Document doc = dBuilder.parse(new File("file.xml"));
doc.getDocumentElement().normalize();
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?
Documentis anObjectand has been built from an XML file.