Issue
I am using Spring-framework v5.2.1.RELEASE. The DefaultDocumentLoader.java in spring bean factory has following code:
import javax.xml.parsers.DocumentBuilder;
...
DocumentBuilder builder = createDocumentBuilder(factory, entityResolver, errorHandler);
I know that spring uses apache.xerces.internal.parsers
. But I don't know which version of Xerces does it use? In spring directory, I did gradlew -q dependencies
and searched the dependency list.
I did not find xerces or parsers. How to figure out the xerces version in use?
Solution
It uses the JDK's default library for XML parser. So, it is not using any third party jar for parsing XML.
Basically, it is using the rt.jar of your jdk/../jre/lib directory for getting classes to parse XML.
The package it is using is : com.sun.org.apache.xerces.*
Answered By - Anish B.
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)