title: Reading and parsing xml file in Spring Project
body: <p>I want to parse xml file in spring project. Can anyone provide direction for this?</p>
  
  <p>This xml file will be used to load various fields which are required to be validated for each jsf page.</p>
  
  <p>I want to use this xml to be read through document build factory or any generic function present in the spring</p>
  
  <pre><code>DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
  DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
  Document doc = dBuilder.parse(fXmlFile);
  </code></pre>
  
  <p>I want to validate a page for specific values which are defined in this xml. So I need to parse this xml file as we do in simple java program using <code>DocumentBuilderFactory</code></p>