title: DOM tree data structure without XML file
body: <p>I would like to use a DOM XML tree as a data structure, but I don't want to save and read the data into an XML file or a database. Is there an implementation or a library or a framework for Java that allows me?</p>
  
  <p>Also, I wish it were possible to query with XQuery on this tree.</p>