What is the meaning of <jxb: bindings version =?
What are the valid version attribute values ββin jxb:bindings ?
<jxb:bindings version="2.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> I tried to use different values ββwith 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 +4
1 answer
The version attribute is used when bindings between versions of the JAXB specification change. This is necessary to ensure backward compatibility when using new JAXB implementations. See Section 7.1.4 of the JAXB 2.1 Specification for more information.
The error message received when specifying version 2.2, I consider an XJC error:
<jxb:bindings version="2.2" ... xjc outputs ERROR, only "1.0" is allowed +2