title: Use XML as database in Java
body: <p>I want to use XML file as database. Where I want to store an ID and its correspondingly a String path. Like:</p>
  
  <pre><code>&lt;item&gt;
       &lt;Id&gt;id&lt;/Id&gt;
       &lt;Path&gt;path&lt;/Path&gt;
  &lt;/item&gt; 
  </code></pre>
  
  <p>or like that.
  Now in runtime a Name-Value Collection will load this data stored in XML document and check the Id against some data and will be processed accordingly and also update (that is change path of same Id)and delete(removal of an existing item) of items is needed in that XML file.
  Hope I make you able to understand my idea!
  I have no code to show as this is in conceptual level. What I need is that how can I achieve this, is there any tutorial I can read or API available which is able to do this?
  Thank you. I am in JAVA.</p>