FMS6 - Import Schema - Fiscal Years
Fiscal Years Validation XSD
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by XMLSPY 5 Professional Ed. Release 2 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="GLAccounts">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Header">
<xs:annotation>
<xs:documentation>Provides details of the school providing the export and when the export was made.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="LANumber">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0123456789]{3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SchoolNumber">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0123456789]{4}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SchoolName">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(\w|\W){1,50}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ExportDate" type="xs:date"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="YearDefinitions">
<xs:annotation>
<xs:documentation>Provides details of the school providing the export and when the export was made.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="FinancialYear" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="FinancialYearID" type="xs:integer"/>
<xs:element name="FinancialYearDescription">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(\w|\W){1,9}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FinancialYearStartDate" type="xs:date"/>
<xs:element name="YearState">
<xs:annotation>
<xs:documentation>F = Finalised
N = Not Started
S = Started
P = Preliminary Closure</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="1"/>
<xs:enumeration value="P"/>
<xs:enumeration value="S"/>
<xs:enumeration value="N"/>
<xs:enumeration value="F"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Version" use="required" fixed="0.01"/>
</xs:complexType>
</xs:element>
<xs:element name="LedgerType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="EX"/>
<xs:enumeration value="ES"/>
<xs:enumeration value="IN"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LedgerCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]{1,8}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LedgerDescription">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(\w|\W){1,32}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LedgerGroup">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(\w|\W){1,32}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="FundCode">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{2}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:schema>