Reading and parsing an XML file in a Spring project

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

+3
source share
1 answer

The question is too vague, different scenarios are possible.

, 14. Marshalling XML O/X Mappers Spring. , .


, . , XML , XML- XML.

, , BeanPostProcessor, Commons/Config , XML. , , PropertyPlaceholderConfigurer .

+3

All Articles