<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/StaffCourse.xsd" targetNamespace="http://tempuri.org/StaffCourse.xsd" id="StaffCourse">
	<xs:element name="StaffCourses">
		<xs:complexType>
			<xs:sequence>
				<!--  Beginning of Course Block -->
				<xs:element name="StaffMember" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="SAUID" type="string4to4Type"/>
							<xs:element name="YearCode" type="string4to4Type"/>
							<xs:element name="StaffStateID" type="staffStateIDType"/>
							<xs:element name="StateJobCode" type="string4to4Type"/>
							<xs:element name="SchoolID" type="string4to4Type"/>
							<xs:element name="StateCourseCode" type="stateCourseCodeType"/>
							<xs:element name="GradeLevelCode" type="gradeLevelType"/>
							<xs:element name="APCourse" type="yesNoType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="staffStateIDType">
		<xs:restriction base="xs:string">
			<xs:pattern value="\d{6}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="string4to4Type">
		<xs:restriction base="xs:string">
			<xs:pattern value="\d{4}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="stateCourseCodeType">
		<xs:restriction base="xs:string">
			<xs:pattern value="[A-Za-z][A-Za-z][0-9][0-9]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="gradeLevelType">
		<xs:restriction base="xs:string">
			<xs:pattern value="[0-2][0-9]"/>
			<xs:pattern value="[Mm][Ee]"/>
			<xs:pattern value="[Mm][Ss]"/>
			<xs:pattern value="[Cc][Dd]"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="yesNoType">
		<xs:restriction base="xs:string">
			<xs:pattern value="[Yy]"/>
			<xs:pattern value="[Nn]"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
