<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ISBE.SIS.com" targetNamespace="http://www.ISBE.SIS.com"
	elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation>
			This schema defines the XML file format for submitting information for Pre-K Follow-Up. 
		</xs:documentation>
	</xs:annotation>
	<xs:complexType name="PreKFollowUpFileHeader" mixed="false">
		<xs:annotation>
			<xs:documentation>
				This schema defines the XML FileHeader for uploading Pre-K Follow-Up data. This particular complex element can be used in other XML files to express the header.
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="FileType">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="40" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="TotRecCnt" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string" >
						<xs:maxLength value="10" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="FileName">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="100" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="SentDt">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d{2}/\d{2}/\d{4}" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="RCDTS">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="15" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PreKFollowUpRecord" mixed="false">
		<xs:annotation>
			<xs:documentation>This schema defines detail record format for submitting information for Pre-K Follow-Up file. The Pre-K Follow-Up Record is a complex type wrapping a number of simple elements of the majority are mandatory and the rest are optional.
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="SID">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="9" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="SAPID" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="50" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="LastName">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="FirstName">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="30" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="DOB">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:pattern value="\d{2}/\d{2}/\d{4}" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="RCDTSHome" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="15" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
      <xs:element name="RCDTSServing" nillable="true">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="15" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
			<xs:element name="GradeLevel" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2" />						
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="SchoolYr" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="4" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="ReadingActivities" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="MathActivities" nillable="true">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="2" />
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="LanguageActivities" nillable="true">
				<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="2" />
				</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="RecordRow" nillable="true" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>
            The RecordRow element is for internal purposes only.  Do not add this element to the XML data file.
          </xs:documentation>
        </xs:annotation>
      </xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="PreKFollowUp">
		<xs:annotation>
			<xs:documentation>
        The PreKFollowUp element wraps the two key complex elements of PreKFollowUp FileHeaderRecord and PreKFollowUp Record.
      </xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="StudentHdrRecord" type="PreKFollowUpFileHeader" />
				<xs:element name="StudentPreKFollowUpRecord" type="PreKFollowUpRecord" maxOccurs="unbounded" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>