<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="PACKAGE">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REPLY">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" type="xs:string" />
              <xs:element name="EDOID" type="xs:string" />
              <xs:element name="CREATEDAT" type="xs:dateTime" />
              <xs:element name="RESULT" type="xs:int" minOccurs="1" maxOccurs="1" nillable="false" />
              <xs:element name="SUPPLIERDOC" type="xs:string" />
              <xs:element name="SUPPLIERINVOICE" type="xs:string" />
              <xs:element name="SUPPLINVOICECREATE" type="xs:dateTime" />
              <xs:element name="CLIENTINN" type="xs:string" />
              <xs:element name="CLIENTKPP" type="xs:string" />
              <xs:element name="CLIENTGLN" type="xs:string" />
              <xs:element name="ACCEPTED" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ITEM" type="SpecPositionType" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute name="docWI" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="description" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="name" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
  <xs:complexType name="SpecPositionType">
    <xs:sequence>
      <xs:element name="BARCODE" type="xs:string" />
      <xs:element name="QUANTITY" type="xs:decimal" />
      <xs:element name="MARKS" minOccurs="1" maxOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MARKCODE" type="xs:string" minOccurs="0" maxOccurs="unbounded" nillable="false" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>