Terry Lacy created XERCESJ-1703:
-----------------------------------

             Summary: Can't get validation examples to work with XSD 1.1
                 Key: XERCESJ-1703
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1703
             Project: Xerces2-J
          Issue Type: Bug
         Environment: Windows 10 Enterprise
JDK 1.8.0_121 64-bit
Maven 3.3.9 on Spring Tool Suite 3.9.4.RELEASE

            Reporter: Terry Lacy


I'm using Maven. I have this dependency:
{code:java}
<dependency>
    <groupId>xerces</groupId>
    <artifactId>xercesImpl</artifactId>
    <version>2.12.0</version>
 </dependency>{code}
I've attempted exactly the code shown in XERCES-1688 and in the documentation 
example here: [https://xerces.apache.org/xerces2-j/faq-xs.html.]

They do not work. When I get to this line:
{code:java}
SchemaFactory.newInstance("http://www.w3.org/XML/XMLSchema/v1.1";);{code}
I get the exception:
{code:java}
java.lang.IllegalArgumentException: No SchemaFactory that implements the schema 
language specified by: http://www.w3.org/XML/XMLSchema/v1.1 could be loaded
 at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:215){code}
Is there something missing from the sample code? Does the maven artifact in 
maven central not have 1.1 support?

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to