【发布时间】:2012-04-13 01:12:42
【问题描述】:
编译我的 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 文件是
<?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>
【问题讨论】:
标签: java jaxb xml-parsing