Commit | Line | Data |
---|---|---|
1d8ab692 GB |
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
2 | <!-- *************************************************************************** | |
3 | * Copyright (c) 2014 École Polytechnique de Montréal | |
4 | * | |
5 | * All rights reserved. This program and the accompanying materials are | |
6 | * made available under the terms of the Eclipse Public License v1.0 which | |
7 | * accompanies this distribution, and is available at | |
8 | * http://www.eclipse.org/legal/epl-v10.html | |
9 | * | |
10 | * Contributors: | |
11 | * Geneviève Bastien - Initial API and implementation | |
12 | *************************************************************************** --> | |
13 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
14 | attributeFormDefault="unqualified" elementFormDefault="qualified"> | |
15 | ||
16 | <xs:element name="trace"> | |
17 | <xs:complexType> | |
18 | <xs:sequence> | |
19 | <xs:element maxOccurs="unbounded" minOccurs="0" name="event" type="event" /> | |
20 | </xs:sequence> | |
21 | </xs:complexType> | |
22 | </xs:element> | |
23 | ||
24 | <xs:complexType name="event"> | |
25 | <xs:sequence> | |
26 | <xs:element maxOccurs="unbounded" minOccurs="0" name="field" type="field" /> | |
27 | </xs:sequence> | |
28 | <xs:attribute name="timestamp" type="xs:integer" use="required" /> | |
29 | <xs:attribute name="name" type="xs:string" use="required" /> | |
1d8ab692 GB |
30 | </xs:complexType> |
31 | ||
32 | <xs:complexType name="field"> | |
33 | <xs:attribute name="name" type="xs:string" use="required" /> | |
34 | <xs:attribute name="value" type="xs:string" use="required" /> | |
35 | <xs:attribute name="type" use="required" > | |
36 | <xs:simpleType> | |
37 | <xs:restriction base="xs:string"> | |
38 | <xs:enumeration value="int"/> | |
39 | <xs:enumeration value="long"/> | |
40 | <xs:enumeration value="string"/> | |
41 | </xs:restriction> | |
42 | </xs:simpleType> | |
43 | </xs:attribute> | |
44 | </xs:complexType> | |
45 | ||
46 | </xs:schema> |