title: Java Xml caching
body: <p>Is there a efficient way to cache all the nodes of an xml file in Java? </p>
  
  <p>For example can I have a map with xpath as key and the value corresponding to that xpath in the xml as the value. </p>
  
  <p>Or if there is any other way of doing it? </p>