[ https://issues.apache.org/jira/browse/XERCESJ-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mukul Gandhi resolved XERCESJ-1703. ----------------------------------- Resolution: Invalid Sorry for a delayed answer. you asked: Does the maven artifact in maven central not have 1.1 support? [mukul] Yes, that's true. XercesJ doesn't yet officially support publishing build artifacts during a release as Maven dependencies, on maven central. I've seen in real projects following to be used successfully, Configuring the maven build, to use any third party jars (applicable to XercesJ as well) that are not available in maven central. I don't think, this bug report is a valid XercesJ bug. I'm resolving this bug report, as 'invalid'. > 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 > Affects Versions: 2.12.0 > 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 > Priority: Major > > 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 XERCESJ-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? > Here's the code I'm currently using: > > {code:java} > private static final String W3C_XML_SCHEMA_11_NS_URI = > "http://www.w3.org/XML/XMLSchema/v1.1"; > // ... > saxParserFactory = SAXParserFactory.newInstance(); > saxParserFactory.setNamespaceAware(true); > // Throws exception here: > schemaFactory = SchemaFactory.newInstance(W3C_XML_SCHEMA_11_NS_URI); > saxParserFactory.setSchema(schemaFactory.newSchema(new File(schemaFile))); > saxParser = saxParserFactory.newSAXParser(); > {code} > > -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: j-dev-h...@xerces.apache.org