Max Li
Max Li

Reputation: 591

How to find what apache.xerces version does spring-framework use?

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?

Upvotes: 1

Views: 1649

Answers (1)

Anish B.
Anish B.

Reputation: 16439

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.*

Upvotes: 2

Related Questions