<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:dd905="http://www.mf.gov.pl/schematy/EDD/DD905/2019/10/"
           xmlns:ddtypes="http://www.mf.gov.pl/schematy/EDD/DDTYPES/2019/10/"
           xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
           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"
           targetNamespace="http://www.mf.gov.pl/schematy/EDD/DD905/2019/10/"
           elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00">
  <!--=========================================-->
  <!--===== DD905:C_STD_RSP -->
  <!--===== STATUS RESPONSE -->
  <!--=========================================-->
  <!--===== 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="DD905" type="dd905:DD905Type" />

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

  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element name="StatusResponse" type="dd905:StatusResponseType" />
    </xs:sequence>
  </xs:complexType>

  <!--==========================================================-->
  <!--=====                 Status Response                =====-->
  <!--==========================================================-->
  <xs:complexType name="StatusResponseType">
    <xs:sequence>
      <xs:element name="Attributes" type="dd905:AttributesType" />
    </xs:sequence>
  </xs:complexType>

  <!--==========================================================-->
  <!--=====                   Attributes                   =====-->
  <!--==========================================================-->
  <xs:complexType name="AttributesType">
    <xs:sequence>
      <xs:element name="DocumentReference" type="ddtypes:AdministrativeReferenceType" minOccurs="1" maxOccurs="1"/>
      <xs:element name="Status" type="tcl:StatusType" />
      <xs:element name="LastReceivedMessageType" type="ddtypes:RequestedDDMessageType" />
    </xs:sequence>
  </xs:complexType>

</xs:schema>