<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Matthias Troyer (ETH Zurich) -->
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Matthias Troyer (ETH Zürich) -->
<!--W3C Schema generated by XML Spy v4.0 beta 3 build Aug 24 2001 (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="AVERAGES">
		<xs:complexType>
			<xs:choice minOccurs="0" maxOccurs="unbounded">
				<xs:element ref="VECTOR_AVERAGE"/>
				<xs:element ref="SCALAR_AVERAGE"/>
			</xs:choice>
			<xs:attributeGroup ref="FileTypeNameAttributes"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SCALAR_AVERAGE">
		<xs:complexType>
			<xs:sequence>
				<xs:group ref="MCResultGroup" minOccurs="0"/>
				<xs:element name="BINNED" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:group ref="MCResultGroup"/>
						<xs:attribute name="type" use="optional">
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="logarithmic"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="size" type="xs:nonNegativeInteger" use="optional"/>
						<xs:attribute name="number" type="xs:nonNegativeInteger" use="optional"/>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="indexvalue" type="xs:anySimpleType" use="optional"/>
			<xs:attribute name="name" type="xs:string" use="optional"/>
			<xs:attributeGroup ref="FileTypeNameAttributes"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="VECTOR_AVERAGE">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="TIMESERIES" type="TimeSeriesType" minOccurs="0"/>
				<xs:element ref="SCALAR_AVERAGE" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="name" type="xs:string" use="required"/>
			<xs:attribute name="nvalues" type="xs:decimal" use="required"/>
			<xs:attributeGroup ref="FileTypeNameAttributes"/>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="MCResultType">
		<xs:simpleContent>
			<xs:extension base="xs:double">
				<xs:attributeGroup ref="ErrorEvaluationAttribute"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:attributeGroup name="ErrorEvaluationAttribute">
		<xs:attribute name="method" use="optional" default="simple">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="simple"/>
					<xs:enumeration value="binning"/>
					<xs:enumeration value="jackknife"/>
					<xs:enumeration value="bootstrap"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="program" type="xs:string" use="optional"/>
	</xs:attributeGroup>
	<xs:group name="MCResultGroup">
		<xs:choice minOccurs="0" maxOccurs="unbounded">
			<xs:element name="MEAN" type="MCResultType"/>
			<xs:element name="ERROR" type="MCResultType"/>
			<xs:element name="VARIANCE" type="MCResultType"/>
			<xs:element name="AUTOCORR" type="MCResultType"/>
			<xs:element name="COUNT" type="xs:nonNegativeInteger"/>
			<xs:element name="THERMALIZATION" type="xs:nonNegativeInteger"/>
			<xs:element name="TIMESERIES" type="TimeSeriesType"/>
		</xs:choice>
	</xs:group>
	<xs:attributeGroup name="FileTypeNameAttributes">
		<xs:attribute name="format" type="xs:string" use="optional"/>
		<xs:attribute name="file" type="xs:string" use="optional"/>
	</xs:attributeGroup>
	<xs:complexType name="TimeSeriesType">
		<xs:attributeGroup ref="TimeSeriesAttributes"/>
	</xs:complexType>
	<xs:attributeGroup name="TimeSeriesAttributes">
		<xs:attribute name="format" type="xs:string" use="optional" default="HDF5"/>
		<xs:attribute name="file" type="xs:string" use="required"/>
		<xs:attribute name="set" type="xs:string" use="required"/>
	</xs:attributeGroup>
</xs:schema>

