<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2009 sp1 (http://www.altova.com) by ICT (Stichting Deltares) -->
<!--  Delft FEWS Published Interface (Copyright 2003 WL | Delft Hydraulics) -->
<schema xmlns:fews="http://www.wldelft.nl/fews/PI" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.wldelft.nl/fews/PI" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<include schemaLocation="pi_sharedtypes.xsd"/>
	<element name="Tables" type="fews:PiTablesComplexType">
		<annotation>
			<documentation>Collection of tables </documentation>
		</annotation>
	</element>
	<complexType name="PiTablesComplexType">
		<annotation>
			<documentation>Collection of tables.</documentation>
		</annotation>
		<sequence>
			<group ref="fews:TimeZoneChoice" minOccurs="0"/>
			<element name="table" type="fews:PiTableComplexType" maxOccurs="unbounded">
				<annotation>
					<documentation>Table definition and table data </documentation>
				</annotation>
			</element>
		</sequence>
		<attribute name="version" type="fews:versionString" use="optional" default="1.2">
			<annotation>
				<documentation>The version of the published interface schemas</documentation>
			</annotation>
		</attribute>
	</complexType>
	<complexType name="PiTableComplexType">
		<annotation>
			<documentation>Table definition and table data </documentation>
		</annotation>
		<sequence>
			<element name="header" type="fews:PiTableHeaderComplexType">
				<annotation>
					<documentation>
                        The header is used to specify the link to the location
                        and the contents</documentation>
				</annotation>
			</element>
			<element name="table" type="fews:PiTableRowsComplexType">
				<annotation>
					<documentation>
                    </documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="PiTableHeaderComplexType">
		<annotation>
			<documentation>The header is used to specify the link to the location
                and the contents</documentation>
		</annotation>
		<sequence>
			<element name="locationId" type="fews:LocationIdSimpleType"/>
			<element name="qualifierId" type="fews:idString" minOccurs="0" maxOccurs="unbounded">
				<annotation>
					<documentation>Further clarification of the table, when the parameters and location  are not enough to identify the table 		Multiple qualifiers are allowed, the order of the qualifiers is not significant.		</documentation>
				</annotation>
			</element>
			<element name="a" type="fews:PiTableColumnComplexType">
				<annotation>
					<documentation>Specifies parameter stored in table column 'a' .  This parameter represents domain parameter in Fews. Values in column 'a' should be ascending.</documentation>
				</annotation>
			</element>
			<element name="b" type="fews:PiTableColumnComplexType">
				<annotation>
					<documentation>Specified parameter stored in column 'b' . Columns  from 'b'  to 'z'  correspond to a separate time series set in FEWS. All the time series sets should share the same domainParameter. </documentation>
				</annotation>
			</element>
			<element name="c" type="fews:PiTableColumnComplexType" minOccurs="0">
				<annotation>
					<documentation>Columns from 'c'  to 'z' are optional and specify parameters stored in these table columns </documentation>
				</annotation>
			</element>
			<element name="d" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="e" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="f" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="g" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="h" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="i" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="j" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="k" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="l" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="m" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="n" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="o" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="p" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="q" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="r" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="s" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="t" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="u" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="v" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="w" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="x" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="y" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="z" type="fews:PiTableColumnComplexType" minOccurs="0"/>
			<element name="startDate" type="fews:DateTimeComplexType">
				<annotation>
					<documentation>Date this table is valid for</documentation>
				</annotation>
			</element>
			<element name="longName" type="string" minOccurs="0"/>
			<element name="stationName" type="fews:nameString" minOccurs="0"/>
			<element name="sourceOrganisation" type="string" minOccurs="0"/>
			<element name="sourceSystem" type="string" minOccurs="0"/>
			<element name="fileDescription" type="string" minOccurs="0">
				<annotation>
					<documentation>Description of (the content of) this file</documentation>
				</annotation>
			</element>
			<element name="comment" type="fews:commentString" minOccurs="0">
				<annotation>
					<documentation>use this field as a notebook to add comments</documentation>
				</annotation>
			</element>
			<element name="creationDate" type="date" minOccurs="0">
				<annotation>
					<documentation>Date on which this table was
created</documentation>
				</annotation>
			</element>
			<element name="creationTime" type="time" minOccurs="0">
				<annotation>
					<documentation>Time on which this table was created</documentation>
				</annotation>
			</element>
			<element name="region" type="string" minOccurs="0">
				<annotation>
					<documentation>code/description of the region. Needed if the id's
 can be the same in different regions.</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="PiTableColumnComplexType">
		<annotation>
			<documentation>Table column definition.  Specifies which parameter is stored in a column</documentation>
		</annotation>
		<attribute name="parameterId" type="fews:ParameterSimpleType" use="required">
			<annotation>
				<documentation>Parameter Id</documentation>
			</annotation>
		</attribute>
		<attribute name="units" type="string">
			<annotation>
				<documentation>Optional string that identifies the units used</documentation>
			</annotation>
		</attribute>
	</complexType>
	<complexType name="PiTableRowsComplexType">
		<annotation>
			<documentation>Table data.  At least one row must be present</documentation>
		</annotation>
		<sequence>
			<element name="row" type="fews:PiTableRowComplexType" minOccurs="2" maxOccurs="unbounded">
				<annotation>
					<documentation> table rows</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<complexType name="PiTableRowComplexType">
		<annotation>
			<documentation>Values in the columns a through z. Row must have at least columns a and b</documentation>
		</annotation>
		<attribute name="a" type="float" use="required"/>
		<attribute name="b" type="float" use="required"/>
		<attribute name="c" type="float"/>
		<attribute name="d" type="float"/>
		<attribute name="e" type="float"/>
		<attribute name="f" type="float"/>
		<attribute name="g" type="float"/>
		<attribute name="h" type="float"/>
		<attribute name="i" type="float"/>
		<attribute name="j" type="float"/>
		<attribute name="k" type="float"/>
		<attribute name="l" type="float"/>
		<attribute name="m" type="float"/>
		<attribute name="n" type="float"/>
		<attribute name="o" type="float"/>
		<attribute name="p" type="float"/>
		<attribute name="q" type="float"/>
		<attribute name="r" type="float"/>
		<attribute name="s" type="float"/>
		<attribute name="t" type="float"/>
		<attribute name="u" type="float"/>
		<attribute name="v" type="float"/>
		<attribute name="w" type="float"/>
		<attribute name="x" type="float"/>
		<attribute name="y" type="float"/>
		<attribute name="z" type="float"/>
	</complexType>
</schema>
