我很想根据 xsd 验证 xml。以下是xsd
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns="http://www.w3schools.com" targetNamespace="http://www.xxxxxxxxxxxxx/xxxxxxxx" xmlns:cl="http://www.xxxxxx/contactlist" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:complexType name="contactNumberType">
<xsd:all>
<xsd:element name="type" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="number" type="xsd:integer" minOccurs="1" maxOccurs="1"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="contactNumbersType">
<xsd:sequence>
<xsd:element name="contact_number" type="contactNumberType" minOccurs="1" maxOccurs="2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="contactType">
<xsd:all>
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="company" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="jobtitle" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="emailadress" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="addresses" type="addressesType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="contact_numbers" type="contactNumbersType" minOccurs="1" maxOccurs="1"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="addressType">
<xsd:all>
<xsd:element name="type" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="street_address1" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="street_address2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="suburb" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="postcode" type="xsd:integer" minOccurs="1" maxOccurs="1"/>
<xsd:element name="state" type="xsd:string" minOccurs="1" maxOccurs="1"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="contacts">
<xsd:sequence>
<xsd:element name="contact" type="contactType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="addressesType">
<xsd:sequence>
<xsd:element name="address" type="addressType" minOccurs="1" maxOccurs="2"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
我收到以下异常。请帮助我了解我缺少什么
例外:src-resolve.4.2:解析组件“contactNumberType”时出错。