<?xml version="1.0" encoding="ISO-8859-1" ?>
<xml-java-binding-schema version="1.0-ea">
  <options package="phones"/>
  <element name="department" type="class" root="true">
    <content>
      <element-ref name="person" property="persons"/>
    </content>
  </element>

  <element name="person" type="class">
    <content>
      <element-ref name="email" property="emails"/>
      <element-ref name="office-location" property="office-locations"/>
      <element-ref name="office-hours"/>
      <element-ref name="status"/>
      <element-ref name="courses"/>
      <element-ref name="phone" property="phones"/>
    </content>
  </element>

  <element name="office-hours" type="class">
    <content>
      <element-ref name="times"/>
    </content>
  </element>

  <element name="times" type="class">
    <attribute name="day" convert="TimesType"/>
  </element>

  <element name="status" type="class">
    <attribute name="type" convert="StatusType"/>
  </element>

  <element name="courses" type="class"/>

  <element name="phone" type="class" class="PhoneNumber">
    <attribute name="type" convert="PhoneType"/>
  </element>

  <enumeration name="TimesType" members="M T W TH F"/>
  <enumeration name="StatusType" members="undergrad grad ta faculty staff visitor"/>
  <enumeration name="PhoneType" members="office home cell fax"/>
</xml-java-binding-schema>