<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:complexType name="JobDescriptionType">
  <xs:sequence>
    <xs:element name="JobTitle" type="xs:string"/>
    <xs:element name="StartDate" type="xs:date"/>
    <xs:element name="HiringUnit" type="xs:string"/>
    <xs:element name="Salary" type="xs:integer"/>
    <xs:element name="Description" type="xs:string"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="JobCriteriaType">
  <xs:sequence>
    <xs:element name="JobCriterion" type="xs:string" maxOccurs="unbounded"/>
    <xs:element name="InterviewQuestion" type="xs:string" maxOccurs="unbounded"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="JobApplicationType">
  <xs:sequence>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="LastName" type="xs:string"/>
    <xs:element name="Qualifications" type="QualificationsType" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
</xs:complexType>


<xs:complexType name="QualificationsType">
  <xs:sequence>
    <xs:element name="Degree" type="xs:string"/>
    <xs:element name="Institution" type="xs:string"/>
    <xs:element name="Year" type="xs:gYear"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="JobApplicationListType">
  <xs:sequence>
    <xs:element name="JobApplication" type="JobApplicationType" minOccurs="0" maxOccurs="unbounded"/>
  </xs:sequence>
</xs:complexType>

<xs:complexType name="OfferType">
  <xs:sequence>
    <xs:element name="FirstName" type="xs:string"/>
    <xs:element name="LastName" type="xs:string"/>
    <xs:element name="SalaryOffered" type="xs:integer"/>
    <xs:element name="DateOffered" type="xs:date"/>
    <xs:element name="Accepted" type="xs:boolean" />
    <xs:element name="Declined" type="xs:boolean" />
  </xs:sequence>
</xs:complexType>

<xs:complexType name="OfferListType">
  <xs:sequence>
    <xs:element name="Offer" type="OfferType" maxOccurs="unbounded" minOccurs="0"/>
  </xs:sequence>
</xs:complexType>
</xs:schema>
