<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00"
           xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
           xmlns:ddtypes="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/"
           xmlns:tms="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02"
           xmlns:tcl="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02"
           xmlns:doc="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02"
           xmlns:dd716="http://www.mf.gov.pl/schematy/EDD/DD716/2019/10/"
           targetNamespace="http://www.mf.gov.pl/schematy/EDD/DD716/2019/10/">
  <!--=============================================-->
  <!--=====              DD716                =====-->
  <!--=====     Powiadomienie o kontroli      =====-->
  <!--=============================================-->

  <!--===== Imports =====-->
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02" schemaLocation="types.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02" schemaLocation="tms.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02" schemaLocation="tcl.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02" schemaLocation="doc.xsd" />
  <xs:import namespace="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/" schemaLocation="ddTypes.xsd" />

  <!--===== Root Element =====-->
  <xs:element name="DD716" type="dd716:DD716Type" />

  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="DD716Type">
    <xs:sequence>
      <xs:element name="Header" type="tms:HeaderType" />
      <xs:element name="Body" type="dd716:BodyType" />
    </xs:sequence>
  </xs:complexType>

  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element name="ControlNotificationForDelivery" type="dd716:ControlNotificationForDeliveryType" />
    </xs:sequence>
  </xs:complexType>

  <!--==========================================================-->
  <!--=====       Control Notification For Delivery        =====-->
  <!--==========================================================-->
  <xs:complexType name="ControlNotificationForDeliveryType">
    <xs:sequence>
      <xs:element name="DeliveryDocumentReference" type="ddtypes:DeliveryDocumentReferenceType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Attributes" type="dd716:AttributesType" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

  <!--==========================================================-->
  <!--=====                   Attributes                   =====-->
  <!--==========================================================-->
  <xs:complexType name="AttributesType">
    <xs:sequence>
      <xs:element name="DateAndTimeOfIssuanceOfControl" type="emcs:DateTimeType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="ControlFlag" type="tcl:Flag" minOccurs="1" maxOccurs="1"/>
      <xs:element name="ControlInformation" type="ddtypes:LSDDDComplementaryInformation350Type" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
  </xs:complexType>

</xs:schema>