1<?xml version="1.0" encoding="UTF-8"?>
 2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 3  <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
 4  <xs:element name="events">
 5    <xs:complexType>
 6      <xs:choice minOccurs="0" maxOccurs="unbounded">
 7        <xs:element ref="validity"/>
 8        <xs:element name="event">
 9          <xs:complexType>
10            <xs:all>
11              <xs:element ref="event-classname"/>
12              <xs:element ref="scid"/>
13              <xs:element ref="gen-method"/>
14              <xs:element ref="gen-time"/>
15              <xs:element ref="start-time"/>
16              <xs:element minOccurs="0" ref="stop-time"/>
17              <xs:element minOccurs="0" ref="properties"/>
18            </xs:all>
19          </xs:complexType>
20        </xs:element>
21      </xs:choice>
22      <xs:attribute ref="xsi:noNamespaceSchemaLocation"/>
23    </xs:complexType>
24  </xs:element>
25  <xs:element name="validity">
26    <xs:complexType>
27      <xs:choice minOccurs="0" maxOccurs="unbounded">
28        <xs:element ref="start-time"/>
29        <xs:element ref="stop-time"/>
30        <xs:element ref="scid"/>
31        <xs:element name="event" type="xs:string"/>
32      </xs:choice>
33    </xs:complexType>
34  </xs:element>
35  <xs:element name="start-time" type="xs:dateTime"/>
36  <xs:element name="stop-time" type="xs:dateTime"/>
37  <xs:element name="scid" type="xs:string"/>
38  <xs:element name="event-classname" type="xs:string"/>
39  <xs:element name="gen-method" type="xs:string"/>
40  <xs:element name="gen-time" type="xs:dateTime"/>
41  <xs:element name="properties">
42    <xs:complexType>
43      <xs:sequence>
44        <xs:element minOccurs="0" maxOccurs="unbounded" ref="property"/>
45      </xs:sequence>
46    </xs:complexType>
47  </xs:element>
48  <xs:element name="property">
49    <xs:complexType>
50      <xs:all>
51        <xs:element ref="name"/>
52        <xs:element ref="value"/>
53      </xs:all>
54    </xs:complexType>
55  </xs:element>
56  <xs:element name="name" type="xs:string"/>
57  <xs:element name="value" type="xs:string"/>
58</xs:schema>