﻿<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="SuperStarReport" xmlns="http://www.dcsf.gov.uk/schemas/cbds" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.dcsf.gov.uk/schemas/cbds" elementFormDefault="qualified" version="1.0">
  <xs:element name="SuperStarReport">
    <xs:complexType>
      <xs:choice minOccurs="1" maxOccurs="unbounded">
        <xs:element name="Record">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UPN" type="xs:string" minOccurs="0"/>
              <xs:element name="LegalSurname" type="xs:string"/>
              <xs:element name="Forename" type="xs:string"/>
              <xs:element name="DateOfBirth" type="xs:dateTime"/>
              <xs:element name="Gender" type="xs:string"/>
              <xs:element name="AdmissionDate" type="xs:dateTime" minOccurs="0"/>
              <xs:element name="LeavingDate" type="xs:dateTime" minOccurs="0"/>
              <xs:element name="free_meal" type="xs:string" minOccurs="0"/>
              <xs:element name="TongueCode" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>First Language using standard codes</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="EAL" type="xs:string" minOccurs="0"/>
              <xs:element name="Code" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>SEN Code using standard codes</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="SENStart" type="xs:dateTime" minOccurs="0"/>
              <xs:element name="group_code" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Ethnicity Code</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="RegGroup" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Class</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="YearGroup" type="xs:string" minOccurs="0"/>
              <xs:element name="LEA_Care" type="xs:string" minOccurs="0"/>
              <xs:element name="SENIsGifted" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Is Gifted or Taletned</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="PossibleMarks" type="xs:int" minOccurs="0"/>
              <xs:element name="AuthAbsences" type="xs:int" minOccurs="0"/>
              <xs:element name="UnauthAbsences" type="xs:int" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>