GPX-skeema

Kohteesta Geocaching Wiki Finland
Versio hetkellä 12. kesäkuuta 2006 kello 17.08 – tehnyt Liimes (keskustelu | muokkaukset) (pohja)
(ero) ← Vanhempi versio | Nykyinen versio (ero) | Uudempi versio → (ero)
Loikkaa: valikkoon, hakuun
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--  finncache.xsd version 1.0: Geocaching.fi GPX -->
<xs:schema id="GCFIGPX" targetNamespace="http://www.geocaching.fi/GPX/1/0" xmlns:mstns="http://www.topografix.com/GPX/1/1" xmlns="http://www.geocaching.fi/GPX/1/0" xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" xmlns:gcfi="http://www.geocaching.fi/GPX/1/0">
  <xs:element name="ficache">
    <xs:complexType>
      <xs:all>
        <xs:element name="name" type="xs:string" minOccurs="0"/>
        <!--  placed_by is a freeform field to describe the individuals who placed the cache -->
        <xs:element name="placed_by" type="xs:string" minOccurs="0"/>
        <!-- Difficulty and terrain are on a 1 to 5 scale. 1 being easiest. Can be incremented by .5 -->
        <xs:element name="difficulty" type="xs:string" minOccurs="0"/>
        <xs:element name="terrain" type="xs:string" minOccurs="0"/>
        <!-- Municipality -->
        <xs:element name="city" type="xs:string" minOccurs="0"/>
        <xs:element name="description" nillable="true" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:simpleContent>
              <xs:extension base="xs:string">
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
        <!--  Encoded hints use Rot13 encryption on Geocaching.fi but displayed in cleartext here --> 
        <xs:element name="hint" type="xs:string" minOccurs="0"/>
        <xs:element name="logs" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:all>
              <xs:element name="log" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:all>
                    <!-- Log date dd.mm.yyyy -->
                    <xs:element name="date" type="xs:string" minOccurs="0"/>
                    <!-- Log time hh.mm -->
                    <xs:element name="time" type="xs:string" minOccurs="0"/>
                    <!-- Log type: Found, DNF, Note, FTF -->
                    <xs:element name="type" type="xs:string" minOccurs="0"/>
                    <!-- User name -->
                    <xs:element name="user" type="xs:string" minOccurs="0"/>
                    <!-- Textual contents of the log entry -->
                    <xs:element name="entry" type="xs:string" nillable="true" minOccurs="0"/>
                    <!-- Support for adding a waypoint to a log -->
                    <xs:element name="wpt" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:attribute name="lat" form="unqualified" type="xs:string"/>
                        <xs:attribute name="lon" form="unqualified" type="xs:string"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:all>
                  <xs:attribute name="id" form="unqualified" type="xs:string"/>
                </xs:complexType>
              </xs:element>
            </xs:all>
          </xs:complexType>
        </xs:element> <!-- end of logs -->
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>