1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!-- ***************************************************************************
3 * Copyright (c) 2014 École Polytechnique de Montréal
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
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">
16 <xs:element name="trace">
19 <xs:element maxOccurs="unbounded" minOccurs="0" name="event" type="event" />
24 <xs:complexType name="event">
26 <xs:element maxOccurs="unbounded" minOccurs="0" name="field" type="field" />
28 <xs:attribute name="timestamp" type="xs:integer" use="required" />
29 <xs:attribute name="name" type="xs:string" use="required" />
30 <xs:attribute name="source" type="xs:integer" use="required" />
33 <xs:complexType name="field">
34 <xs:attribute name="name" type="xs:string" use="required" />
35 <xs:attribute name="value" type="xs:string" use="required" />
36 <xs:attribute name="type" use="required" >
38 <xs:restriction base="xs:string">
39 <xs:enumeration value="int"/>
40 <xs:enumeration value="long"/>
41 <xs:enumeration value="string"/>