﻿<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:bbr="urn:oio:bbr:1.0.0" xmlns:bbr4="http://rep.oio.dk/bbr.dk/xml/schemas/2006/09/30/" xmlns:bbr2="http://rep.oio.dk/bbr.dk/xml/schemas/2005/03/11/" xmlns:dkcc2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/09/" targetNamespace="urn:oio:bbr:1.0.0" elementFormDefault="qualified" attributeFormDefault="unqualified" xml:lang="EN">
	<import namespace="http://rep.oio.dk/bbr.dk/xml/schemas/2006/09/30/" schemaLocation="BBR_AddressAccessIdentifier.xsd"/>
	<include schemaLocation="AddressSpecificIdentifier.xsd"/>
	<import namespace="http://rep.oio.dk/bbr.dk/xml/schemas/2005/03/11/" schemaLocation="BBR_MunicipalRealPropertyIdentifier.xsd"/>
	<import namespace="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/09/" schemaLocation="DKCC_BuildingIdentifier.xsd"/>
	<include schemaLocation="EnergyDeliveryAddress.xsd"/>
	<include schemaLocation="EnergyReportCreationDate.xsd"/>
	<include schemaLocation="EnergyConsumptionEndDate.xsd"/>
	<include schemaLocation="EnergyConsumptionUnitIdentifier.xsd"/>
	<include schemaLocation="EnergyConsumptionMeasure.xsd"/>
	<include schemaLocation="EnergyConsumptionStatusIdentifier.xsd"/>
	<import namespace="http://rep.oio.dk/bbr.dk/xml/schemas/2006/09/30/" schemaLocation="BBR_GeographicEastingMeasure.xsd"/>
	<import namespace="http://rep.oio.dk/bbr.dk/xml/schemas/2006/09/30/" schemaLocation="BBR_GeographicNorthingMeasure.xsd"/>
	<include schemaLocation="EnergyConsumptionKeys.xsd"/>
  <include schemaLocation="BBR_MunicipalBFENummer.xsd"/>
	<element name="EnergyConsumption" type="bbr:EnergyConsumptionType"/>
	<complexType name="EnergyConsumptionType">
		<sequence>
			<element ref="bbr:EnergyConsumptionKeys"/>
			<element ref="bbr4:AddressAccessIdentifier" minOccurs="0"/>
			<element ref="bbr:AddressSpecificIdentifier" minOccurs="0"/>
			<element ref="bbr:EnergyDeliveryAddress" minOccurs="0"/>
			<element ref="bbr2:MunicipalRealPropertyIdentifier" minOccurs="0"/>
			<element ref="dkcc2:BuildingIdentifier" minOccurs="0"/>
			<element ref="bbr4:GeographicEastingMeasure" minOccurs="0"/>
			<element ref="bbr4:GeographicNorthingMeasure" minOccurs="0"/>
			<element ref="bbr:EnergyReportCreationDate"/>
			<element ref="bbr:EnergyConsumptionEndDate"/>
			<element ref="bbr:EnergyConsumptionUnitIdentifier"/>
			<element ref="bbr:EnergyConsumptionMeasure"/>
			<element ref="bbr:EnergyConsumptionStatusIdentifier"/>
      <element name="UUID" type="string" minOccurs="0"/>
      <element ref="bbr:MunicipalBFENummer" minOccurs="0"/>
		</sequence>
	</complexType>
</schema>
