I want to parse xml file in spring project. Can anyone provide direction for this?
This xml file will be used to load various fields which are required to be validated for each jsf page.
I want to use this xml to be read through document build factory or any generic function present in the spring
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = dBuilder.parse(fXmlFile);
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 DocumentBuilderFactory