xjb绑定文件的XML命名空间问题
我有以下xml文件:xjb绑定文件的XML命名空间问题,xml,xml-namespaces,Xml,Xml Namespaces,我有以下xml文件: <?xml version="1.0" encoding="UTF-8"?> <bindings xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://java.sun.com/xml/ns/jaxb" version="2.1"&g
<?xml version="1.0" encoding="UTF-8"?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://java.sun.com/xml/ns/jaxb"
version="2.1">
<bindings xs:schemaLocation="Inbound.wsdl#wsdl:types" node="/schema">
<bindings node="//complexType[@name='TradeIdWithRef']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='Bank']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='Bid']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='addMarketExRequest']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='Offer']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='Price']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
<bindings node="//complexType[@name='Delta']">
<bindings node=".//attribute[@name='_value']">
<property name="ValueAttribute"/>
</bindings>
</bindings>
</bindings>
</bindings>
有人可以帮忙吗?属性
schemaLocation
必须包含架构的名称空间和架构定义文件的路径
另外,我不能肯定这是一个错误,但我不知道为什么要在子节点而不是根节点上声明
schemaLocation
。该模式看起来像什么?
cvc-elt.1: Cannot find the declaration of element 'bindings'. [5]