1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
<xsd:element name="root" type="root_type"/>
4
<xsd:complexType name="root_type">
6
<xsd:element name="run" type="run_type" minOccurs="1" maxOccurs="unbounded" />
7
<xsd:element name="lap" type="lap_type" minOccurs="0" maxOccurs="unbounded" />
8
<xsd:element name="track" type="track_type" minOccurs="0" maxOccurs="unbounded" />
9
<xsd:element name="point" type="point_type" minOccurs="0" maxOccurs="unbounded" />
12
<xsd:complexType name="run_type">
14
<xsd:element name="laps" type="laps_type" minOccurs="0" />
16
<xsd:attribute name="type" type="xsd:string" use="required"/>
17
<xsd:attribute name="track" type="xsd:string" use="optional"/>
18
<xsd:attribute name="sport" type="xsd:string" use="optional"/>
19
<xsd:attribute name="multisport" type="xsd:string" use="optional"/>
21
<xsd:complexType name="laps_type">
22
<xsd:attribute name="first" type="xsd:string" use="optional"/>
23
<xsd:attribute name="last" type="xsd:string" use="optional"/>
25
<xsd:complexType name="lap_type">
27
<xsd:element name="begin_pos" type="position_type" minOccurs="0" />
28
<xsd:element name="end_pos" type="position_type" minOccurs="0" />
29
<xsd:element name="max_speed" type="xsd:float" minOccurs="0" />
30
<xsd:element name="calories" type="xsd:positiveInteger" minOccurs="0" />
31
<xsd:element name="avg_hr" type="xsd:positiveInteger" minOccurs="0" />
32
<xsd:element name="max_hr" type="xsd:positiveInteger" minOccurs="0" />
33
<xsd:element name="intensity" type="xsd:string" minOccurs="0" />
34
<xsd:element name="unknown" type="xsd:string" minOccurs="0" />
36
<xsd:attribute name="type" type="xsd:string" use="required"/>
37
<xsd:attribute name="index" type="xsd:string" use="optional"/>
38
<xsd:attribute name="start" type="xsd:string" use="optional"/>
39
<xsd:attribute name="duration" type="xsd:string" use="optional"/>
40
<xsd:attribute name="distance" type="xsd:string" use="optional"/>
41
<xsd:attribute name="trigger" type="xsd:string" use="optional"/>
43
<xsd:complexType name="position_type">
44
<xsd:attribute name="lat" type="xsd:string" use="optional"/>
45
<xsd:attribute name="lon" type="xsd:string" use="optional"/>
47
<xsd:complexType name="track_type">
48
<xsd:attribute name="type" type="xsd:string" use="required"/>
49
<xsd:attribute name="index" type="xsd:string" use="optional"/>
51
<xsd:complexType name="point_type">
52
<xsd:attribute name="type" type="xsd:string" use="optional"/>
53
<xsd:attribute name="time" type="xsd:string" use="required"/>
54
<xsd:attribute name="lat" type="xsd:string" use="optional"/>
55
<xsd:attribute name="lon" type="xsd:string" use="optional"/>
56
<xsd:attribute name="alt" type="xsd:string" use="optional"/>
57
<xsd:attribute name="distance" type="xsd:string" use="optional"/>
58
<xsd:attribute name="hr" type="xsd:string" use="optional"/>