<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:include schemaLocation="simpleTypes.xsd"/>
    <xs:include schemaLocation="elements.xsd"/>
   <xs:element name="Declaration">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="KindOfDeclaration" type="KindOfDeclarationType" />
				<xs:element name="TypeOfDeclaration" type="TypeOfDeclarationType" />
				<xs:element name="IsCorrectionDeclaration" type="IsCorrectionDeclarationType" />
				<xs:element name="RefNumberOfCorrectedDeclaration" type="RefNumberOfCorrectedDeclarationType"
					minOccurs="0" />
				<xs:element name="PreparationDate" type="DateType" />
				<xs:element name="CustomsOffice" type="CustomsOfficeType" />
				<xs:element ref="Customer" />
				<xs:element ref="Declarer" />
				<xs:element ref="ReportingPeriod" />
				<xs:element ref="AppliedDocuments" minOccurs="0" />
				<xs:element ref="ExciseGoods" minOccurs="0" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
    <xs:element name="ExciseGoods">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="ExciseGood" maxOccurs="9999"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="ExciseGood">
        <xs:complexType>
            <xs:complexContent>
                <xs:extension base="ExciseGoodType">
                    <xs:sequence>
                        <xs:element name="AvailableAmount" type="AvailableAmountType"/>
                        <xs:element name="ReceivedAmount" type="ReceivedAmountType"/>
                        <xs:element name="UsedAmount" type="UsedAmountType"/>
                        <xs:element name="RemainingAmount" type="RemainingAmountType"/>
                        <xs:element name="QuantityUsedEnergyProducts" type="QuantityUsedEnergyProductsType"/>
                    </xs:sequence>
                </xs:extension>
            </xs:complexContent>
        </xs:complexType>
    </xs:element>
</xs:schema>
