<extension base =“anyType”>的xjc绑定文件抛出错误</extension>

时间:2009-11-06 14:05:34

标签: java jaxb customization

我有xsd defination

<element name="primaryKey" nillable="false">
   <complexType mixed="false">                   
      <complexContent mixed="false">
         <extension base="anyType"/>                   
      </complexContent>
   </complexType>
</element>

我使用绑定文件

<jxb:bindings node="//xs:extension[@base='anyType']">
   <jxb:property>
      <jxb:baseType name="java.lang.Object"/>
   </jxb:property>
</jxb:bindings> 

生成jaxb类但我无法执行此错误[xjc] [ERROR] Specified property customization is not used.

0 个答案:

没有答案