我无法解析这个 xml。谁能帮我这有什么问题
这是我的 XML 文件
<?xml version="1.0" encoding="UTF-8"?>
<gea-sr:GETOFFERSResponse
xmlns:gea-sr="http://schemas.com/soap/requests"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.com/soap/requests
file:///C:/Users/Desktop/SMCWebResponse.xsd">
<requestdate dateDescription="Wed" requestdate="2012-12-19"/>
<requestdate dateDescription="Mon" requestdate="2012-12-24">
<offer timeperiod="0800-1200" timeperioddesc="AM 8-12">
<offertoken/>
<offertext>12657131N3AM 0004 T000000000N</offertext>
<offerremarks/>
<offerflag>F</offerflag>
</offer>
<offer timeperiod="1300-1700" timeperioddesc="PM 1-5">
<offertoken/>
<offertext>12657131N3AA 0006 T000000000N</offertext>
<offerremarks/>
<offerflag>F</offerflag>
</offer>
</requestdate>
</gea-sr:GETOFFERSResponse>"
这是我试图用于解析的 XSD 快照
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gea-sr="http://schemas.com/soap/requests" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:complexType name="requestdateType">
<xsd:sequence>
<xsd:element name="offer" type="offerType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="requestdate" type="xsd:date"/>
<xsd:attribute name="datedescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="offerType">
<xsd:all>
<xsd:element name="offertoken" type="offertokenType"/>
<xsd:element name="offertext" type="offertextType"/>
<xsd:element name="offerremarks" type="offerremarksType"/>
<xsd:element name="offerflag" type="offerflagType"/>
</xsd:all>
<xsd:attribute name="timeperiod" type="timespanType"/>
<xsd:attribute name="timeperioddescription">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="25"/>
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:simpleType name="timespanType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="0800-1200"/>
<xsd:enumeration value="1300-1700"/>
<xsd:enumeration value="0800-1700"/>
<xsd:enumeration value="1000-1700"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="offertokenType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="offertextType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
<xsd:minLength value="19"/>
<xsd:whiteSpace value="collapse"/>
<xsd:pattern value="[^\s].*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="offerremarksType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="offerflagType">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
<xsd:enumeration value="A"/>
<xsd:enumeration value="F"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="GETOFFERSResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="requestdate" type="gea-sr:requestdateType" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
我收到错误 cvc-elt.5.2.1:该元素对于实际类型定义“{anonymous}”无效。cvc-model-group:元素的类型“{anonymous}”出乎意料。