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

  <element name="yhistranspordi_teadete_nimekiri">
      <complexType>
          <sequence>
              <element name="vastus">
                  <complexType>
                      <sequence>
                          <element name="kirjeid" type="xsd:integer">
                              <annotation><documentation>Kirjete arv</documentation></annotation>
                          </element>
                          <element name="teated">
                              <complexType>
                                  <sequence>
                                      <element name="transpordi_teade" type="tns:transpordi_teade" minOccurs="0" maxOccurs="unbounded" />
                                  </sequence>
                              </complexType>
                          </element>
                      </sequence>
                  </complexType>
              </element>
          </sequence>
      </complexType>
  </element>

  <complexType name="transpordi_teade">
    <sequence>
      <element name="transpordi_liik"
                 type="xsd:string">
            <annotation>
                <documentation>Liik
                    (Buss, Tramm, Troll)
                </documentation>
            </annotation>
      </element>
      <element name="algusaeg" type="xsd:dateTime">
        <annotation>
          <documentation>Tõrke algusaeg</documentation>
        </annotation>
      </element>
      <element name="loppaeg" type="xsd:dateTime" nillable="true">
        <annotation>
          <documentation>Tõrke lõppaeg</documentation>
        </annotation>
      </element>
      <element name="suunad" type="xsd:string">
        <annotation>
          <documentation>Transpordi liinid ja suunad</documentation>
        </annotation>
      </element>
      <element name="teadaanne" type="xsd:string">
          <annotation>
              <documentation>Teadaanne</documentation>
          </annotation>
      </element>
      <element name="peatused" type="xsd:string">
        <annotation>
          <documentation>Tõrkega seotud peatused</documentation>
        </annotation>
      </element>
      <element name="info" type="xsd:string">
        <annotation>
          <documentation>Lisainfo tõrke kohta</documentation>
        </annotation>
      </element>
      <element name="peatuse_koodid" type="xsd:string">
        <annotation>
          <documentation>Tõrkega seotud peatuste koodid</documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
</schema>
