<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Peter Søndergaard (COWI A/S) -->
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Peter Søndergaard (COWI A/S) -->
<xs:schema xmlns:dacapo="http://it.bt.aau.dk/dacapo/" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://it.bt.aau.dk/dacapo/" elementFormDefault="qualified" attributeFormDefault="qualified">
	<xs:include schemaLocation="http://it.bt.aau.dk/dacapo/dacapodocument.xsd"/>
	<xs:include schemaLocation="http://it.bt.aau.dk/dacapo/dacapotyper.xsd"/>
	<xs:element name="DACAPO">
		<xs:annotation>
			<xs:documentation>Ver. 015</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="ProjektData">
					<xs:complexType>
						<xs:sequence>
							<xs:element ref="dacapo:FirmaKontakt"/>
							<xs:element name="OprettetDato">
								<xs:simpleType>
									<xs:restriction base="xs:date"/>
								</xs:simpleType>
							</xs:element>
							<xs:element name="ProjektInfo" type="xs:string"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element ref="dacapo:Ejendom" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="ObjektId">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ObjektBetegnelse">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="50"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="EjendomType">
		<xs:sequence>
			<xs:element name="EjendomId" type="dacapo:ObjektId"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="EjendomBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element ref="dacapo:PostAdresse" minOccurs="0"/>
			<xs:element ref="dacapo:Matrikel" minOccurs="0"/>
			<xs:element ref="dacapo:Organisation" minOccurs="0"/>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Bygning" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Terraen" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="BygningType">
		<xs:sequence>
			<xs:element name="BygningId" type="dacapo:ObjektId"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="BygningBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Matrikel" minOccurs="0"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Etage" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Del" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="EtageType">
		<xs:sequence>
			<xs:element name="EtageId" type="dacapo:ObjektId"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="EtageBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Rum" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RumType">
		<xs:sequence>
			<xs:element name="RumId" type="dacapo:ObjektId"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="RumBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element name="Opvarmet" default="N" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="1"/>
						<xs:enumeration value="N"/>
						<xs:enumeration value="J"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Organisation" minOccurs="0"/>
			<xs:element ref="dacapo:Del" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="DelType">
		<xs:sequence>
			<xs:element name="DelId" type="dacapo:ObjektId"/>
			<xs:element name="DelBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="GarantiUdloeb" type="xs:date" minOccurs="0"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Klassifikation" minOccurs="0"/>
			<xs:element ref="dacapo:DriftVedligehold" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:FirmaKontakt" minOccurs="0"/>
			<xs:element ref="dacapo:Komponent" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="KomponentType">
		<xs:sequence>
			<xs:element name="KomponentId" type="dacapo:ObjektId"/>
			<xs:element name="KomponentBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element ref="dacapo:Klassifikation"/>
			<xs:element name="Fabrikat" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="40"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="Type" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="40"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="BMSNr" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="40"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="GarantiUdloeb" type="xs:date" minOccurs="0"/>
			<xs:element name="ForventetLevetid" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:integer">
						<xs:maxInclusive value="3"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:DriftVedligehold" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:FirmaKontakt" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TerraenType">
		<xs:sequence>
			<xs:element name="TerraenId" type="dacapo:ObjektId"/>
			<xs:element name="GlobalId" type="dacapo:GlobalIdType"/>
			<xs:element name="TerraenBetegnelse" type="dacapo:ObjektBetegnelse"/>
			<xs:element ref="dacapo:Maengde" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Dokument" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="dacapo:Matrikel" minOccurs="0"/>
			<xs:element ref="dacapo:Del" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="GlobalIdType">
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="Ejendom" type="dacapo:EjendomType"/>
	<xs:element name="Terraen" type="dacapo:TerraenType"/>
	<xs:element name="Bygning" type="dacapo:BygningType"/>
	<xs:element name="Etage" type="dacapo:EtageType"/>
	<xs:element name="Rum" type="dacapo:RumType"/>
	<xs:element name="Del" type="dacapo:DelType"/>
	<xs:element name="Komponent" type="dacapo:KomponentType"/>
</xs:schema>
