I want to parse an XML file in a spring project. Can anyone point out a direction for this?
This XML file will be used to load the various fields that need to be checked for each jsf page.
I want to use this xml to read through the assembly of a factory document or any common function present in spring
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = dBuilder.parse(fXmlFile);
I want to check the page for specific values that are defined in this xml. Therefore, I need to parse this xml file, as in a simple java program, usingDocumentBuilderFactory
source
share