cvc-elt.1.a:找不到元素“ ScrubAddress”的声明

时间:2019-02-07 21:05:43

标签: xml xsd

继续收到此错误: cvc-elt.1.a:找不到元素'ScrubAddress'的声明。

XML

<?xml version="1.0"?>

-<ScrubAddress>

<pstrAddr1>1310 dusk</pstrAddr1>

<pstrAddr2/>

<pstrZip>61801</pstrZip>

</ScrubAddress>

XSD

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
  <xs:element name="ScrubAddress">
    <xs:complexType>
      <xs:all>
        <xs:element name="pstrAddr1" type="xs:string" minOccurs="0" />
        <xs:element name="pstrAddr2" type="xs:string" minOccurs="0" />
       <xs:element name="pstrZip" type="xs:string" minOccurs="0" />
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>

0 个答案:

没有答案