[
https://issues.apache.org/jira/browse/DOXIA-716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17801325#comment-17801325
]
ASF GitHub Bot commented on DOXIA-716:
--------------------------------------
michael-o commented on code in PR #187:
URL: https://github.com/apache/maven-doxia/pull/187#discussion_r1438549648
##########
doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidator.java:
##########
@@ -157,8 +161,17 @@ protected void setValidate(boolean validate) {
private XMLReader getXMLReader() {
if (xmlReader == null) {
try {
- xmlReader =
XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
+ SAXParserFactory parserFactory =
SAXParserFactory.newInstance();
Review Comment:
I bet so. Let me evaluate that later this day.
> Update and unify XMLReader creation and configuration
> -----------------------------------------------------
>
> Key: DOXIA-716
> URL: https://issues.apache.org/jira/browse/DOXIA-716
> Project: Maven Doxia
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0-M8
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 2.0.0-M9
>
>
> * {{XMLReaderFactory}} is deprecated from Java 9
> * Force XML Schema as main language if both DTD and XSD are provided
> * Force {{Locale#ROOT}} for portability
> * Remove old Xerces hack
--
This message was sent by Atlassian Jira
(v8.20.10#820010)