JAXB绑定不受支持的绑定命名空间“;http://www.w3.org/2001/XMLSchema"
我有以下XSD,我正在从中生成JAXB绑定。。。(此问题只留下相关部分):JAXB绑定不受支持的绑定命名空间“;http://www.w3.org/2001/XMLSchema",jaxb,jaxb2-basics,jaxb2-simplify-plugin,Jaxb,Jaxb2 Basics,Jaxb2 Simplify Plugin,我有以下XSD,我正在从中生成JAXB绑定。。。(此问题只留下相关部分): ... 包含屏幕导航数据 您可以使用下面的模式 <xsd:simpleType name="LayerRate_T"> <xsd:annotation> <xsd:appinfo> <xjc:javaType name="org.acme.foo.LayerRate" adapter="org.acme.foo.LayerRate
...
包含屏幕导航数据
您可以使用下面的模式
<xsd:simpleType name="LayerRate_T">
<xsd:annotation>
<xsd:appinfo>
<xjc:javaType name="org.acme.foo.LayerRate" adapter="org.acme.foo.LayerRateAdapter" />
</xsd:appinfo>
</xsd:annotation>
</xsd:simpleType>
当将绑定配置包括到XSD中时,使用外部绑定时则有所不同
<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:simplify="http://jaxb2-commons.dev.java.net/basic/simplify"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc simplify" jaxb:version="2.1">
<jaxb:bindings schemaLocation="compass_input_spec_12122014.xsd" node="/xsd:schema">
<jaxb:bindings node="//xsd:element[@name='trace']/xsd:complexType">
<simplify:property name="timeOrEventOrLocation">
<simplify:as-element-property />
</simplify:property>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:simplify="http://jaxb2-commons.dev.java.net/basic/simplify"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc simplify" jaxb:version="2.1">
<jaxb:bindings schemaLocation="compass_input_spec_12122014.xsd" node="/xsd:schema">
<jaxb:bindings node="//xsd:element[@name='trace']/xsd:complexType">
<simplify:property name="timeOrEventOrLocation">
<simplify:as-element-property />
</simplify:property>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>