<?xml version="1.0" encoding="UTF-8"?><schema
  targetNamespace="https://opinfo.tallinn.ee/transporditeade/planeeritud/xsd"
  xmlns="http://www.w3.org/2001/XMLSchema"
  xmlns:tns="https://opinfo.tallinn.ee/transporditeade/planeeritud/xsd"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <element name="transport_notices">
      <complexType>
          <sequence>
              <element name="response">
                  <complexType>
                      <sequence>
                          <element name="number_of_notices" type="xsd:integer">
                              <annotation><documentation>Kirjete arv</documentation></annotation>
                          </element>
                          <element name="notices">
                              <complexType>
                                  <sequence>
                                      <element name="transport_notice" type="tns:transport_notice" minOccurs="0" maxOccurs="unbounded" />
                                  </sequence>
                              </complexType>
                          </element>
                      </sequence>
                  </complexType>
              </element>
          </sequence>
      </complexType>
  </element>

  <complexType name="transport_notice">
    <sequence>
      <element name="transport_type" type="xsd:string">
        <annotation>
            <documentation>Liik
                (Buss, Tramm, Troll)
            </documentation>
        </annotation>
      </element>
      <element name="publication_start_time" type="xsd:dateTime">
        <annotation>
          <documentation xml:lang="et">Tõrke algusaeg</documentation>
        </annotation>
      </element>
      <element name="publication_end_time" type="xsd:dateTime" nillable="true">
        <annotation>
          <documentation xml:lang="et">Tõrke lõppaeg</documentation>
        </annotation>
      </element>
      <element name="valid_start_time" type="xsd:date">
        <annotation>
          <documentation xml:lang="et">Teate kehtima hakkamise kuupäev</documentation>
        </annotation>
      </element>
      <element name="valid_end_time" type="xsd:date" nillable="true">
        <annotation>
          <documentation xml:lang="et">Teate lõppemise kuupäev</documentation>
        </annotation>
      </element>
      <element name="routes" type="xsd:string">
        <annotation>
          <documentation xml:lang="en">Transport types and routes</documentation>
          <documentation xml:lang="et">Transpordi liinid ja suunad</documentation>
        </annotation>
      </element>
      <element name="title" type="xsd:string">
          <annotation>
              <documentation xml:lang="en">Title</documentation>
              <documentation xml:lang="et">Pealkiri</documentation>
          </annotation>
      </element>
      <element name="stops" type="xsd:string">
        <annotation>
          <documentation xml:lang="en">Stops bound to the transport notice</documentation>
          <documentation xml:lang="et">Teatega seotud peatused</documentation>
        </annotation>
      </element>
      <element name="stop_codes" type="xsd:string">
        <annotation>
            <documentation xml:lang="en">Stop codes bound to the transport notice</documentation>
            <documentation xml:lang="et">Teatega seotud peatuste koodid</documentation>
        </annotation>
      </element>
      <element name="content" type="xsd:string">
        <annotation>
          <documentation xml:lang="en">Content of the transport notice</documentation>
          <documentation xml:lang="et">Transporditeate sisu</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
</schema>
