I need to validate XML files against XSD 1.1 schema. My question is: Does the Xerces library supports now XSD 1.1?
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.2</version>
</dependency>
When i include this in my pom then it doesnot work . It gives following Error :
java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded
But when i add the following jars manually in classpath then it kinda works:
cupv10k-runtime.jar
org.eclipse.wst.xml.xpath2.processor_1.1.0.jar
xercesImpl.jar
xml-apis.jar
My Code :
import javax.xml.validation.SchemaFactory;
schemaFactory = SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1");
Do we need to add the jars manually for this to work. Isn't the library avialable in maven? Plese help if anyone has any idea.