[英]ERROR] s4s-elt-schema-ns: The namespace of 'bindings' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'
I am facing below error while compiling my jaxb file. 编译jaxb文件时,我遇到以下错误。
C:\bea\jdk160_05\bin>xjc cmf.jaxb
parsing a schema...
[ERROR] s4s-elt-schema-ns: The namespace of element 'bindings' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
line 2 of file:/C:/bea/jdk160_05/bin/cmf.jaxb
JaxB File is JaxB文件为
<?xml version='1.0'?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.1">
<bindings schemaLocation="bi-cmf-flat_V1_0.xsd" >
<!-- rename the value element -->
<bindings node="//xs:complexType[@name='DeductibleType']">
<class name="DeductibleTypeAttribute"/>
</bindings>
</bindings>
</bindings>
The format for the XJC call is: XJC调用的格式为:
xjc -b <bindinfo> <schema>
This means your XJC call should be: 这意味着您的XJC呼叫应为:
xjc -b cmf.jaxb bi-cmf-flat_V1_0.xsd
Example 例
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.