Xerces 2.12.0 claims to support XSD 1.1 (https://xerces.apache.org/xerces2-j/faq-xs.html), but I can't get past the SchemaFactory.newInstance call.
More context:
This line fails:
import javax.xml.validation.SchemaFactory;
//...
schemaFactory = SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1");
With the exception:
java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded
Here's the maven dependency I'm using:
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.0</version>
</dependency>
While I've found several posts claiming this works, it doesn't for me.
I've seen folks recommending this very old dependency:
<dependency>
<groupId>org.opengis.cite.xerces</groupId>
<artifactId>xercesImpl-xsd11</artifactId>
<version>2.12-beta-r1667115</version>
</dependency>
And yeah, that kinda works, but I'd prefer using the Apache version, especially since it claims to support XSD 1.1.