private DocumentBuilderFactory createDocumentBuilderFactory() {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        factory.setValidating(true);
        factory.setNamespaceAware(true);
        factory.setIgnoringElementContentWhitespace(true);
        factory.setAttribute(SCHEMA_FEATURE, true); // For Xerces implementation
        return factory;
    }
Create a JAXP DocumentBuilderFactory that this bean definition reader will use for parsing XML documents. Can be
overridden in subclasses, adding further initialization of the factory.

@return the JAXP DocumentBuilderFactory
core/src/main/java/com/github/dozermapper/core/loader/xml/XMLParserFactory.java