Java library that supports XSD 1.1 [closed]

最后都变了- 提交于 2019-12-06 06:59:58

问题


Is there a java library that supports XSD 1.1. I have tried finding it for 2 days. The only implementation I found was Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) which works along with JAXP 1.4. This beta version did not work well either. Basic things like 'assert test' that were introduced in XSD 1.1 were failing. Please help me find a solid java library that supports XSD 1.1 for validation (if any). Thanks in Advance.


回答1:


Depending on your exact needs, Saxon might be able to help you.

Is it just validation that you need? validation of the schema or of the xml document directly?




回答2:


I've been using xerces-j and it has been working well for even very complicated XSDs with many asserts and assertions. It looks like the problems you were running into have been worked out now.




回答3:


Till now things worked well for me by using the following xerces version:

<dependency>
    <groupId>org.opengis.cite.xerces</groupId>
    <artifactId>xercesImpl-xsd11</artifactId>
    <version>2.12-beta-r1667115</version>
</dependency>

I as well wanted to try the saxon-implementation, but than I figured out that saxon XSD1.1 validation only is available in the commercial saxon product, and you need to buy a licence to make use of it.



来源:https://stackoverflow.com/questions/13706629/java-library-that-supports-xsd-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!