jxb:bindings中版本属性的允许值是什么
<jxb:bindings version="2.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">我尝试对xjc "2.2.3-hudson-jaxb-ri-2.2-70-“使用不同的值
<jxb:bindings version="2.2" ... xjc outputs ERROR, only "1.0" is allowed
<jxb:bindings version="2.1" ... xjc compiled successfully
<jxb:bindings version="2.0" ... xjc compiled successfully
<jxb:bindings version="1.0" ... xjc compiled successfully发布于 2011-01-06 00:35:57
如果JAXB规范的不同版本之间的绑定发生变化,则使用version属性。在使用较新的JAXB实现时,这是确保向后兼容性所必需的。有关更多信息,请参阅JAXB2.1规范的7.1.4节。
在指定版本2.2时收到的错误消息,我认为是XJC错误:
<jxb:bindings version="2.2" ... xjc outputs ERROR, only "1.0" is allowedhttps://stackoverflow.com/questions/4552640
复制相似问题