Я пытаюсь проверить xml файл с xsd-файлом для подачи T2202 TAX SLIP для канадского налогового агентства
Ниже приведен мой файл xml, который можно слегка изменить, чтобы он проверялся с помощью файла схемы xsd .
<?xml version="1.0" encoding="UTF-8"?>
<Return>
<T2202>
<T2202Slip>
<SlipReportTypeCode>O</SlipReportTypeCode>
<FilerAccountNumber>000000000RZ0000</FilerAccountNumber>
<PostSecondaryEducationalSchoolProgramName>Webdevelopment</PostSecondaryEducationalSchoolProgramName>
<PostSecondaryEducationalSchoolTypeCode>1</PostSecondaryEducationalSchoolTypeCode>
<FlyingSchoolClubCourseTypeCode>1</FlyingSchoolClubCourseTypeCode>
<StudentName>
<FamilyName>Jacob</FamilyName>
<GivenName>peter</GivenName>
<NameInitialText>k</NameInitialText>
</StudentName>
<SocialInsuranceNumber>000000000</SocialInsuranceNumber>
<StudentNumber>501058988</StudentNumber>
<StudentAddress>
<AddressLine1Text>202-2526 LAKEVIEW</AddressLine1Text>
<AddressLine2Text>CRES</AddressLine2Text>
<CityName>ABBOTSFORD</CityName>
<ProvinceStateCode>BC</ProvinceStateCode>
<CountryCode>CAN</CountryCode>
<PostalZipCode>V2W3A9</PostalZipCode>
</StudentAddress>
<SchoolSession>
<StartYearMonth>1901</StartYearMonth>
<EndYearMonth>1909</EndYearMonth>
<EligibleTuitionFeeAmount>153.64</EligibleTuitionFeeAmount>
<PartTimeStudentMonthCount>9</PartTimeStudentMonthCount>
<FullTimeStudentMonthCount>0</FullTimeStudentMonthCount>
</SchoolSession>
<TotalEligibleTuitionFeeAmount>0</TotalEligibleTuitionFeeAmount>
<TotalPartTimeStudentMonthCount>0</TotalPartTimeStudentMonthCount>
<TotalFullTimeStudentMonthCount>0</TotalFullTimeStudentMonthCount>
</T2202Slip>
<T2202Summary>
<FilerAccountNumber>000000000RZ0000</FilerAccountNumber>
<SummaryReportTypeCode>O</SummaryReportTypeCode>
<TaxationYear>2019</TaxationYear>
<TotalSlipCount>1</TotalSlipCount>
<PostSecondaryEducationalInstitutionName>
<NameLine1Text>CAREER COLLEGE</NameLine1Text>
</PostSecondaryEducationalInstitutionName>
<PostSecondaryEducationalInstitutionMailingAddress>
<CityName>ABBOTSFORD</CityName>
<ProvinceStateCode>BC</ProvinceStateCode>
<CountryCode>CAN</CountryCode>
<PostalZipCode>V2W3A9</PostalZipCode>
</PostSecondaryEducationalInstitutionMailingAddress>
<ContactInformation>
<ContactName>JOHN</ContactName>
<ContactAreaCode>604</ContactAreaCode>
<ContactPhoneNumber>720-4037</ContactPhoneNumber>
<ContactExtensionNumber>6789</ContactExtensionNumber>
</ContactInformation>
<TotalEligibleTuitionFeeAmount>153.64</TotalEligibleTuitionFeeAmount>
</T2202Summary>
</T2202>
</Return>
Ниже приведен файл схемы xsd, который находится на веб-сайте правительства.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Description T2202 Return Complex and Element Types
Last updated May 2019
Version#: 1.19 (version #.yy)
-->
<xsd:schema xmlns:sdt="http://www.cra-arc.gc.ca/xmlns/sdt/2-2-0"
xmlns:ccms="http://www.cra-arc.gc.ca/xmlns/ccms/1-0-0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.cra-arc.gc.ca/xmlns/sdt/2-2-0" schemaLocation="standarddatatypes.xsd"/>
<xsd:import namespace="http://www.cra-arc.gc.ca/xmlns/ccms/1-0-0" schemaLocation="cracommonstructures.xsd"/>
<xsd:include schemaLocation="lemmcommontypes.xsd"/>
<xsd:complexType name="T2202SlipType">
<xsd:sequence>
<xsd:element ref="SlipReportTypeCode"/>
<xsd:element name="FilerAccountNumber" type="BNRZType"/>
<xsd:element name="PostSecondaryEducationalSchoolProgramName" type="Length1to30TextType"/>
<!-- School type code:
1. University
2. College
3. Other education institution providing courses at a post-secondary school level
4. Certified by the Minister of Employment and Social Development Canada
5. Flying school or club
-->
<xsd:element name="PostSecondaryEducationalSchoolTypeCode" type="OneToFiveCodeType"/>
<!-- Flying school or club course type code. Must have a value if School type code is 5,
should be blank if school type code is 1-4. Valid values:
1. Private pilots license
2. Commercial pilots licence
3. Civil flying instructor rating
4. Helicopter category rating
5. Instrument rating
6. Other
-->
<xsd:element name="FlyingSchoolClubCourseTypeCode" type="OneToSixCodeType" minOccurs="0"/>
<xsd:element name="StudentName" type="IndividualNameType"/>
<xsd:element name="SocialInsuranceNumber" type="ccms:SINType"/>
<xsd:element name="StudentNumber" type="Length1to20TextType" minOccurs="0"/>
<xsd:element name="StudentAddress" type="RequiredLine1AddressType"/>
<xsd:element name="SchoolSession" type="SchoolSessionType" minOccurs="1" maxOccurs="4"/>
<xsd:element name="TotalEligibleTuitionFeeAmount" type="Decimal13AmountType" minOccurs="0"/>
<xsd:element name="TotalPartTimeStudentMonthCount" type="ZeroToTwelveCountType"/>
<xsd:element name="TotalFullTimeStudentMonthCount" type="ZeroToTwelveCountType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SchoolSessionType">
<xsd:all>
<xsd:element name="StartYearMonth" type="YYMMType"/>
<xsd:element name="EndYearMonth" type="YYMMType"/>
<xsd:element name="EligibleTuitionFeeAmount" type="Decimal11AmountType" minOccurs="0"/>
<xsd:element name="PartTimeStudentMonthCount" type="ZeroToTwelveCountType"/>
<xsd:element name="FullTimeStudentMonthCount" type="ZeroToTwelveCountType"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="T2202SummaryType">
<xsd:all>
<xsd:element name="FilerAccountNumber" type="BNRZType"/>
<xsd:element ref="SummaryReportTypeCode"/>
<xsd:element name="FilerAmendmentNote" type="Length1to1309TextType" minOccurs="0"/>
<xsd:element ref="TaxationYear"/>
<xsd:element ref="TotalSlipCount"/>
<xsd:element name="PostSecondaryEducationalInstitutionName" type="ThreeLinedLength30NameType"/>
<xsd:element name="PostSecondaryEducationalInstitutionMailingAddress" type="RequiredLine1AddressType"/>
<xsd:element name="ContactInformation" type="ContactType3" minOccurs="0"/>
<xsd:element name="TotalEligibleTuitionFeeAmount" type="Decimal15AmountType"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
Мне нужно проверить файл xml. В * можно внести небольшие изменения xml файл. Я получаю сообщение об ошибке ниже
ОШИБКА: Элемент «Возврат»: для проверки нет доступного глобального объявления root
Заранее спасибо