M 遇到此错误,请帮帮我.....
我的 .xml 文件是
<?xml version="1.0"?>
<addresses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation='Lsc.xsd'>
<lscApplicationform>
<programmes>
<course>MBA(12 months)</course>
</programmes>
<personalDetails>
<surname>Sagar</surname>
<firstname>Shiva</firstname>
<gender>Male</gender>
<placeofbirth>Ulhasnagar</placeofbirth>
<nationality>Indian</nationality>
<countryofbirth>India</countryofbirth>
<dateofbirth>1993-06-03</dateofbirth>
</personalDetails>
<permanentAddress>
</permanentAddress>
</lscApplicationform>
</addresses>
我的xsd文件是
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="lscApplicationForm">
<xs:complexType>
<xs:sequence>
<xs:element name="programmeType" type="xs:string">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="MBA( months)"/>
<xs:enumeration value="MBA( months)"/>
<xs:enumeration value="MSc InformationTechnology"/>
<xs:enumeration value="Msc InternationalHospitalityManagement"/>
<xs:enumeration value="Msc InternationalTourismManagement"/>
<xs:enumeration value="BA(Hons)BusinessStudies"/>
<xs:enumeration value="BSc(Hons)Computing"/>
<xs:enumeration value="PhD/ProfessionaDoctorate"/>
<xs:enumeration value="Other(pleasespecify)"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="personalDetails" type="xs:string"/>
<xs:complexType>
<xs:sequence>
<xs:element name="Surname" type="xs:string"/>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Gender"/>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="male|female"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="placeOfBirth" type="xs:string"/>
<xs:element name="Nationality" type="xs:string"/>
<xs:element name="CountryOfBirth" type="xs:string"/>
<xs:element name="dob" type="xs:date"/>
</xs:sequence>
</xs:complexType>
<xs:element name="permanentAddress" type="xs:string"/>
<xs:complexType>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
还有一个错误是 s4s-elt-must-match.1: The content of 'programmeType' must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*))。发现问题始于:元素。
提前致谢....