以下是我的XSD。我收到错误。你能否验证这个?错误:元素模式的名称空间必须来自模式名称空间http://www.w3.org/2001/XMLSchema
<?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>
的错误是
The namespace of element schema must be from schema namespace ' http://www.w3.org/2001/XMLSchema '
请帮助我。
请[**接受**](http://meta.stackoverflow.com/q/5234/234215)无论哪个答案已帮助您最。谢谢。 – kjhughes