【发布时间】:2016-12-03 03:14:35
【问题描述】:
下面是我的 XSD。我收到错误。你能验证一下吗?
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://api.vvz.com/"
xmlns:vz="http://api.vvz.com/"
targetNamespace="http://api.vvz.com/">
<vz:element name="Account">
<annotation>
<documentation>
A sample element
</documentation>
</annotation>
<simpleType name="ID">
<restriction base="xs:string">
<pattern value='[a-zA-Z0-9]'/>
</restriction>
</simpleType>
<complexType>
<complexContent>
<sequence>
<element minOccurs="0" maxOccurs="unbounded" name="fieldsToNull"
nillable="true" type="string"/>
<element minOccurs="0" maxOccurs="1" name="Id" nillable="true"
type="vz:ID"/>
</sequence>
</complexContent>
</complexType>
</vz:element>
</xsd:schema>
错误是
元素架构的命名空间必须来自架构命名空间'http://www.w3.org/2001/XMLSchema'
请帮帮我。
【问题讨论】:
-
请accept 哪个答案对您帮助最大。谢谢。
标签: xml xsd xsd-validation xml-validation