以下是我的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