Quercus Live Link Developer’s Guide<>

Appendix 1 — Live Link XSD schema

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:include schemaLocation="QuercusLiveLink.xsd"/>
   
  <xsd:element name="QuercusLiveLink">
    <xsd:annotation>
      <xsd:documentation>QuercusLiveLink 8.0.2</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="response" type="ResponseType" minOccurs="1" maxOccurs="1"/>
        <xsd:element name="instances" type="InstanceListType" minOccurs="1" maxOccurs="1"/>
      </xsd:sequence>
      <xsd:attribute name="version" type="xsd:string"/>
    </xsd:complexType>
  </xsd:element>
  <xsd:complexType name="InstanceListType">
     <xsd:sequence>
      <xsd:element name="courseInstance" type="CourseInstanceType" minOccurs="0" maxOccurs="unbounded" nillable="false"/>
     </xsd:sequence>
   </xsd:complexType>
   <xsd:complexType name="CourseInstanceType">
     <xsd:sequence>
      <xsd:element name="service" type="ServiceType" minOccurs="1" maxOccurs="unbounded" nillable="false"/>
     </xsd:sequence>
      <xsd:attribute name="id" type="xsd:integer"/>
      <xsd:attribute name="instanceCode" type="xsd:string"/>
      <xsd:attribute name="courseCode" type="xsd:string"/>
      <xsd:attribute name="courseDescription" type="xsd:string"/>
      <xsd:attribute name="courseYear" type="xsd:integer"/>
      <xsd:attribute name="startDate" type="xsd:date"/>
      <xsd:attribute name="endDate" type="xsd:date"/>
      <xsd:attribute name="session" type="xsd:integer"/>
      <xsd:attribute name="modeOfStudyCode" type="xsd:string"/>
      <xsd:attribute name="modeOfStudyDescription" type="xsd:string"/>
      <xsd:attribute name="locationCode" type="xsd:string"/>
      <xsd:attribute name="locationDescription" type="xsd:string"/>
   </xsd:complexType>
   <xsd:complexType name="ServiceType">
      <xsd:attribute name="cis" type="xsd:integer"/>
      <xsd:attribute name="serviceCode" type="xsd:string"/>
      <xsd:attribute name="serviceName" type="xsd:string"/>
      <xsd:attribute name="startDate" type="xsd:date"/>
      <xsd:attribute name="endDate" type="xsd:date"/>
      <xsd:attribute name="active" type="xsd:integer"/>
      <xsd:attribute name="url" type="xsd:string"/>
   </xsd:complexType>   
  <xsd:complexType name="ResponseType">
    <xsd:sequence>
      <xsd:element name="status" minOccurs="1" maxOccurs="1" nillable="false">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
      </xsd:element>
      <xsd:element name="message" minOccurs="0" maxOccurs="1" nillable="true">
        <xsd:simpleType>
          <xsd:restriction base="xsd:string"/>
        </xsd:simpleType>
      </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="timestamp" type="xsd:dateTime"/>
  </xsd:complexType>
</xsd:schema>