问题描述
XML Schema 1.1版本的非常好的有趣功能对我的用例非常有用。但是,它似乎相对较新。因此,在最终确定决定之前,我想回答以下问题。
The XML Schema 1.1 version of very good interesting features that are invaluable for my use cases. However, it seems to be relatively new. So I would like to get your feed back on the below questions before I finalize my decision.
- 哪个版本的JAXB支持1.1?
- 哪个版本的XmlBeans支持1.1?
- SOAP / WSDL是否支持1.1?
- 是否使用此是否会限制我的API客户端选择的soap堆栈?
- 哪个版本的JAXP开始支持这个。我知道JAXP支持验证1.1模式但不确定从哪个版本开始。
- 还有其他我应该考虑的事情吗?
- Which version of JAXB supports 1.1?
- Which version of XmlBeans supports 1.1?
- Does SOAP/WSDL support the 1.1?
- Does usage of this is going to put constraints on the soap stack that the clients of my API pick?
- Which version of JAXP started supporting this. I know JAXP has support for validating against 1.1 schema but not sure from which version.
- Are there any other things I should consider?
问候。
推荐答案
JAXB规范(JSR-222)的模式到Java部分不包括转换模式1.1模式结构到Java类。从Java类开始,您应该能够映射到由这些结构表示的XML文档。注意:我是JAXB专家组的成员。
The schema-to-Java portion of the JAXB spec (JSR-222) does not cover converting schema 1.1 schema structures to Java classes. Starting from Java classes you should be able to map to the XML documents represented by these structures. Note: I am a member of the JAXB expert group.
据我所知,XMLBeans不支持架构。在任何发行说明中都没有任何内容。
As far as I can tell XMLBeans does not support schema. There is nothing about it in any of the release notes.
我不确定。
是例如,JAX-WS仅支持XML Schema 1.0。
Yes, for example JAX-WS only supports XML Schema 1.0.
我相信它是开始支持XML Schema 1.1的JAXP 1.4(包含在Java SE 6中)。 Java SE 5的Java版本没有。
I believe it is JAXP 1.4 (included with Java SE 6) that began supporting XML Schema 1.1. The version of Java with Java SE 5 does not.
您将利用XML Schema 1.1中的哪些功能?
Which features from XML Schema 1.1 are you going to leverage?
这篇关于谁在使用XML Schema 1.1版本?哪个解析器版本支持它?等等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!