<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:emcs="http://www.icisnet.gr/emcs/v1.03/types" xmlns:doc="http://www.icisnet.gr/emcs/v1.03/doc" targetNamespace="http://www.icisnet.gr/emcs/v1.03/types" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.03">
  <!--=========================================-->
  <!--===   EMCS Simple Types Definitions   ===-->
  <!--=========================================-->
  <!--===== Imports =====-->
  <xs:import namespace="http://www.icisnet.gr/emcs/v1.03/doc" schemaLocation="doc.xsd" />
  <!--==========================================================-->
  <!--===                AadReferenceCodeType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="AadReferenceCodeType">
    <xs:annotation>
      <xs:documentation>AAD Reference Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="21" />
      <xs:pattern value="[0-9]{2}[A-Z]{2}[a-zA-Z0-9]{16}[0-9]" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               ActivityCodeNumberType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="ActivityCodeNumberType">
    <xs:annotation>
      <xs:documentation>Activity Code Number</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="8" />
      <xs:pattern value="[0-9]{1,8}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           AdditionalInformationCodedType           ===-->
  <!--==========================================================-->
  <xs:simpleType name="AdditionalInformationCodedType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Additional information coded" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value=".{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            AdditionalMeasuringUnitsType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="AdditionalMeasuringUnitsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Additional Measuring Units" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             AdditionalTaxQuantityType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="AdditionalTaxQuantityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Additional Tax Quantity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="12" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    AddressType                     ===-->
  <!--==========================================================-->
  <xs:simpleType name="AddressType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Address" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="60" />
      <xs:pattern value=".{1,60}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                AircraftCarrierType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="AircraftCarrierType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Aircraft Carrier" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               AmountOfTaxesPaidType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="AmountOfTaxesPaidType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Amount of Taxes Paid" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 AmountOfTaxesType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="AmountOfTaxesType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Amount of Taxes" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                     AmountType                     ===-->
  <!--==========================================================-->
  <xs:simpleType name="AmountType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Amount" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               AnalysisReferenceType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="AnalysisReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Analysis Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="14" />
      <xs:pattern value=".{1,14}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              ApprovalCodeFactoryType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="ApprovalCodeFactoryType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Approval Code Factory" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value="[0-9]{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                ApprovalCodeTypeType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="ApprovalCodeTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Approval Code Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              ApprovalCodeVehicleType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="ApprovalCodeVehicleType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Approval Code Vehicle" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[0-9]{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              AsdeReferenceNumberType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="AsdeReferenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="ASDE Reference Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="21" />
      <xs:pattern value=".{1,21}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 AsdeRowNumberType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="AsdeRowNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="ASDE Row Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               AttachedDocumentsType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="AttachedDocumentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Attached Documents" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="120" />
      <xs:pattern value=".{1,120}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      BICType                       ===-->
  <!--==========================================================-->
  <xs:simpleType name="BICType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="BIC" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  BedCapacityType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="BedCapacityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Bed Capacity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                BusinessActivityType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="BusinessActivityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Business Activity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               CancellationReasonType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="CancellationReasonType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Cancellation Reason" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="100" />
      <xs:pattern value=".{1,100}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 CarbonDioxideEmissionsType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="CarbonDioxideEmissionsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Carbon Dioxide Emissions" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xsd:pattern value="[0-9]{1,3}|-"/>
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 CarCertificateType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="CarCertificateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Car Certificate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    CarKindType                     ===-->
  <!--==========================================================-->
  <xs:simpleType name="CarKindType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Car Kind" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value=".{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      CityType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="CityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="City" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="60" />
      <xs:pattern value=".{1,60}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                ClearingAgentAfmType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="ClearingAgentAfmType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Clearing Agent AFM" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               ClearingAgentEORIType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="ClearingAgentEORIType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Clearing Agent EORI" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="17" />
      <xs:pattern value=".{1,17}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    CommentsType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="CommentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Comments" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===      ComplementaryConsigneeIdentificationType      ===-->
  <!--==========================================================-->
  <xs:simpleType name="ComplementaryConsigneeIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Complementary Consignee Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             ComplementaryDocumentType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="ComplementaryDocumentType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Complementary Document" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="15" />
      <xs:pattern value=".{1,15}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            ConsigneeIdentificationType             ===-->
  <!--==========================================================-->
  <xs:simpleType name="ConsigneeIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Consignee Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  CountryCodeType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="CountryCodeType">
    <xs:annotation>
      <xs:documentation>Country Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="2" />
      <xs:pattern value="([a-zA-Z]){2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    CurrencyType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="CurrencyType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Currency" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    DateTimeType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="DateTimeType">
    <xs:annotation>
      <xs:documentation>The date is in the Common Era (minus sign in years is not permitted) and time zone although not included UTC is implied</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:dateTime">
      <xs:pattern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      DateType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="DateType">
    <xs:annotation>
      <xs:documentation>The date is in the Common Era (minus sign in years is not permitted)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:date">
      <xs:pattern value="\d{4}-\d{2}-\d{2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           DeclarationReferenceNumberType           ===-->
  <!--==========================================================-->
  <xs:simpleType name="DeclarationReferenceNumberType">
    <xs:annotation>
      <xs:documentation>Declaration Reference Number</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="18" />
      <xs:pattern value="[0-9]{2}GR[A-Z]{2}[0-9]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               DeliveryConditionsType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="DeliveryConditionsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Delivery Conditions" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 DeliveryPlaceType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="DeliveryPlaceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Delivery Place" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="30" />
      <xs:pattern value=".{1,30}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  DestinationType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="DestinationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Destination" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===          DestroyCertificateReferenceType           ===-->
  <!--==========================================================-->
  <xs:simpleType name="DestroyCertificateReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Destroy Certificate Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="21" />
      <xs:pattern value=".{1,21}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 DipennakNumberType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="DipennakNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="DIPENNAK Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="21" />
      <xs:pattern value=".{1,21}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 DocumentNumberType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="DocumentNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Document Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[0-9]{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 DurationInDaysType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="DurationInDaysType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Duration In Days" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[0-9]{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  EmailAddressType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="EmailAddressType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="E-mail Address" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="70" />
      <xs:pattern value=".{1,70}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 EngineCapacityType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="EngineCapacityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Engine Capacity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value="[0-9]{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   EngineTypeType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="EngineTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Engine Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                EtepaaAmountPaidType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="EtepaaAmountPaidType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="ETEPAA Amount Paid" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 ExchangeFactorType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExchangeFactorType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Exchange Factor" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="8" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                ExciseOfficeCodeType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExciseOfficeCodeType">
    <xs:annotation>
      <xs:documentation>Excise Office Code</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="8" />
      <xs:pattern value="[A-Z]{2}[a-zA-Z0-9]{6}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             ExciseRefundLastNamesType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExciseRefundLastNamesType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Excise Refund Last Names" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="512" />
      <xs:pattern value=".{1,512}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        ExciseRefundsRejectionReasonCodeType        ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExciseRefundsRejectionReasonCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Excise Refunds Rejection Reason Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="1" />
      <xs:pattern value="[0-9]{1}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             ExciseTaxCompensationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExciseTaxCompensationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Excise Tax Compensation" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        ExciseTaxesDeclarationRowNumberType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExciseTaxesDeclarationRowNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Excise Taxes Declaration Row Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value="[0-9]{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 ExemptionCodeType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="ExemptionCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Exemption Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           FallbackDocumentReferenceType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="FallbackDocumentReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Fallback Document Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="18" />
      <xs:pattern value=".{1,18}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           FinancialResponsibleTaxIdType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="FinancialResponsibleTaxIdType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Financial Responsible Tax ID" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="12" />
      <xs:pattern value=".{1,12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   ForenamesType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="ForenamesType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Forenames" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  FrameNumberType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="FrameNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Frame Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="17" />
      <xs:pattern value=".{1,17}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    FuelTypeType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="FuelTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Fuel Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  GrossWeightType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="GrossWeightType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Gross Weight" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                GuaranteeAmountType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="GuaranteeAmountType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Guarantee Amount" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            GuaranteeReferenceNumberType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="GuaranteeReferenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Guarantee Reference Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="17" />
      <xs:pattern value=".{1,17}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   HeatedAreaType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="HeatedAreaType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Heated Area" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 HotelCategoryType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="HotelCategoryType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Hotel Category" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      IBANType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="IBANType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="IBAN" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              IdentityOfTransportType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="IdentityOfTransportType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Identity of Transport" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="35" />
      <xs:pattern value=".{1,35}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            ImporterCodeOrBrandNameType             ===-->
  <!--==========================================================-->
  <xs:simpleType name="ImporterCodeOrBrandNameType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Importer Code or Brand Name" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="6" />
      <xs:pattern value=".{1,6}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                InstitutionNameType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="InstitutionNameType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Institution Name" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 InvoiceAmountType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="InvoiceAmountType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Invoice Amount" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              InvoiceReferenceFromType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="InvoiceReferenceFromType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Invoice Reference From" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="60" />
      <xs:pattern value=".{1,60}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               InvoiceReferenceToType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="InvoiceReferenceToType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Invoice Reference To" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="60" />
      <xs:pattern value=".{1,60}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                InvoiceReferenceType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="InvoiceReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Invoice Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="60" />
      <xs:pattern value=".{1,60}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   LastNamesType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="LastNamesType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Last Names" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              LocalReferenceNumberType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="LocalReferenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Local Reference Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="22" />
      <xs:pattern value=".{1,22}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    MakeYearType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="MakeYearType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Make Year" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="4" />
      <xs:pattern value="[0-9]{4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               ManifestReferenceType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="ManifestReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Manifest Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               MeasuringUnitsTypeType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="MeasuringUnitsTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Measuring Units Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              MileageType               			 ===-->
  <!--==========================================================-->
  <xs:simpleType name="MileageType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Mileage" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="8" />
      <xs:pattern value="[0-9]{1,8}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  MunicipalityType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="MunicipalityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Municipality" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  NameOfFatherType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="NameOfFatherType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Name of Father" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             NationalAccountingCodeType             ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalAccountingCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Accounting Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              NationalErrorMessageType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalErrorMessageType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Error Message" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="350" />
      <xs:pattern value=".{1,350}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              NationalErrorPointerType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalErrorPointerType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Error Pointer" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="350" />
      <xs:pattern value=".{1,350}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===         NationalOriginalAttributeValueType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalOriginalAttributeValueType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Original Attribute Value" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="350" />
      <xs:pattern value=".{1,350}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               NationalProductIdType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalProductIdType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Product ID" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="10" />
      <xs:pattern value=".{10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             NationalTransportModeType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="NationalTransportModeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="National Transport Mode" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value=".{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    NetValueType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="NetValueType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Net Value" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   NetWeightType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="NetWeightType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Net Weight" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  NumberOfRowsType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="NumberOfRowsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Number of Rows" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value="[0-9]{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             ObligeeIdentificationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="ObligeeIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Obligee Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             OgaAmountCompensationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="OgaAmountCompensationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="OGA Amount Compensation" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 OriginatingMRNType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="OriginatingMRNType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Originating MRN" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="21" />
      <xs:pattern value=".{1,21}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              OwnershipPercentageType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="OwnershipPercentageType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Ownership Percentage" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="5" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               PaymentMethodCodeType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="PaymentMethodCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Payment Method Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="1" />
      <xs:pattern value=".{1}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              PersonIdentificationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="PersonIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Person Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                     PhoneType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="PhoneType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Phone" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="14" />
      <xs:pattern value=".{1,14}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                     PlatoType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="PlatoType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Plato" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    PostCodeType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="PostCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Postcode" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   PrefectureType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="PrefectureType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Prefecture" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  ProductCodeType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="ProductCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Product Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               ProductDescriptionType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="ProductDescriptionType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Product Description" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="1000" />
      <xs:pattern value=".{1,1000}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 ProtocolNumberType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="ProtocolNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Protocol Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 PublicServiceType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="PublicServiceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Public Service" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    QuantityType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="QuantityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Quantity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        RebatedVehicleRegistrationPlateType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="RebatedVehicleRegistrationPlateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Rebated Vehicle Registration Plate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="30" />
      <xs:pattern value=".{1,30}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              ReferenceDocumentIdType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="ReferenceDocumentIdType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Reference Document ID" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            ReferenceDocumentNumberType             ===-->
  <!--==========================================================-->
  <xs:simpleType name="ReferenceDocumentNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Reference Document Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        RefundRequestCancellationReasonType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="RefundRequestCancellationReasonType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Refund Request Cancellation Reason" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="999" />
      <xs:pattern value=".{1,999}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             RefundRequestCommentsType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="RefundRequestCommentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Refund Request Comments" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="999" />
      <xs:pattern value=".{1,999}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               SadReferenceNumberType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="SadReferenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="SAD Reference Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="21" />
      <xs:pattern value=".{1,21}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  SadRowNumberType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="SadRowNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="SAD Row Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value="[0-9]{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                SampleReferenceType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="SampleReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Sample Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="14" />
      <xs:pattern value=".{1,14}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   SeamanBookType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="SeamanBookType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Seaman Book" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="15" />
      <xs:pattern value=".{1,15}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 SequenceNumberType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="SequenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Sequence Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value="[0-9]{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           SpecialConsigneeTaxNumberType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="SpecialConsigneeTaxNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Special Consignee Tax Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="12" />
      <xs:pattern value=".{1,12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              SpecialReferenceCodeType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="SpecialReferenceCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Special Reference Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value=".{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 StampQuantityType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="StampQuantityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Stamp Quantity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value="[0-9]{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   StampTypeType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="StampTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Stamp Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value=".{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===         StampWarehouseReferenceNumberType          ===-->
  <!--==========================================================-->
  <xs:simpleType name="StampWarehouseReferenceNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Stamp Warehouse Reference Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="10" />
      <xs:pattern value=".{10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                StatisticalValueType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="StatisticalValueType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Statistical Value" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   StreetNameType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="StreetNameType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Street Name" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="65" />
      <xs:pattern value=".{1,65}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  StreetNumberType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="StreetNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Street Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="11" />
      <xs:pattern value=".{1,11}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        SubmittingOperatorIdentificationType        ===-->
  <!--==========================================================-->
  <xs:simpleType name="SubmittingOperatorIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Submitting Operator Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===         SubmittingTraderIdentificationType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="SubmittingTraderIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Submitting Trader Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===          SupplementaryComputationInfoType          ===-->
  <!--==========================================================-->
  <xs:simpleType name="SupplementaryComputationInfoType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Supplementary Computation Info" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===         SupplementaryComputationValueType          ===-->
  <!--==========================================================-->
  <xs:simpleType name="SupplementaryComputationValueType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Supplementary Computation Value" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 SuspensionFlagType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="SuspensionFlagType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Suspension Flag" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="1" />
      <xs:pattern value="[0-9]" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               SuspensionTypeCodeType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="SuspensionTypeCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Suspension Type Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value=".{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 SymbolNumbersType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="SymbolNumbersType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Symbol Numbers" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="1000" />
      <xs:pattern value=".{1,1000}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               TaricAdditionCodeType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaricAdditionCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TARIC Addition Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="4" />
      <xs:pattern value=".{1,4}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   TaricCodeType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaricCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="TARIC Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    TaxBaseType                     ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxBaseType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax Base" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  TaxIdNumberType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxIdNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax ID Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="12" />
      <xs:pattern value=".{1,12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===         TaxOrVehicleWarehouseReferenceType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxOrVehicleWarehouseReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax or Vehicle Warehouse Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="16" />
      <xs:pattern value=".{1,16}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                  TaxQuantityType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxQuantityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax Quantity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="12" />
      <xs:fractionDigits value="3" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    TaxRateType                     ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxRateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax Rate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="15" />
      <xs:pattern value=".{1,15}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                    TaxValueType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="TaxValueType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Tax Value" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="17" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===           TemporaryRegistrationPlateType           ===-->
  <!--==========================================================-->
  <xs:simpleType name="TemporaryRegistrationPlateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Temporary Registration Plate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      TextType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="TextType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Text" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="70" />
      <xs:pattern value=".{1,70}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                      TimeType                      ===-->
  <!--==========================================================-->
  <xs:simpleType name="TimeType">
    <xs:annotation>
      <xs:documentation>The time zone although not included UTC is implied</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:time">
      <xs:pattern value="\d{2}:\d{2}:\d{2}(\.\d+)?" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 TotalDocumentsType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="TotalDocumentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Total Documents" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[0-9]{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 TotalPackagesType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="TotalPackagesType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Total Packages" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="5" />
      <xs:pattern value=".{1,5}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 TraderCommentsType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="TraderCommentsType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Trader Comments" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              TraderIdentificationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="TraderIdentificationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Trader Identification" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               TraderTaxIdNumberType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="TraderTaxIdNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Trader Tax ID Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="12" />
      <xs:pattern value=".{1,12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 TransportCodeType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="TransportCodeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Transport Code" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[0-9]{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===      TransportVehicleIdentificationNumberType      ===-->
  <!--==========================================================-->
  <xs:simpleType name="TransportVehicleIdentificationNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Transport Vehicle Identification Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="40" />
      <xs:pattern value=".{1,40}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===       TransportVehicleRegistrationPlateType        ===-->
  <!--==========================================================-->
  <xs:simpleType name="TransportVehicleRegistrationPlateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Transport Vehicle Registration Plate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="30" />
      <xs:pattern value=".{1,30}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              TransporterTaxNumberType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="TransporterTaxNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Transporter Tax Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="12" />
      <xs:pattern value=".{1,12}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===             VatAmountCompensationType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="VatAmountCompensationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="VAT Amount Compensation" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===          VatInflowAmountCompensationType           ===-->
  <!--==========================================================-->
  <xs:simpleType name="VatInflowAmountCompensationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="VAT Inflow Amount Compensation" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               VehicleFactoryTypeType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleFactoryTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Factory Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===              VehicleInventoryTypeType              ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleInventoryTypeType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Inventory Type" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            VehicleLicenceReferenceType             ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleLicenceReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Licence Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                VehicleModelNameType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleModelNameType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Model Name" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            VehicleRegistrationPlateType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleRegistrationPlateType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Registration Plate" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===          VehicleTaxWarehouseReferenceType          ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleTaxWarehouseReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Tax Warehouse Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="16" />
      <xs:pattern value=".{1,16}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===        VehicleWarehouseKeeperReferenceType         ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehicleWarehouseKeeperReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicle Warehouse Keeper Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="16" />
      <xs:pattern value=".{1,16}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 VehiclesPriceType                  ===-->
  <!--==========================================================-->
  <xs:simpleType name="VehiclesPriceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vehicles Price" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal">
      <xs:totalDigits value="15" />
      <xs:fractionDigits value="2" />
      <xs:minInclusive value="0" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 VesselCapacityType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselCapacityType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Capacity" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="7" />
      <xs:pattern value=".{1,7}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                 VesselCategoryType                 ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselCategoryType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Category" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value=".{1,2}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                VesselHorsePowerType                ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselHorsePowerType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Horse Power" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="6" />
      <xs:pattern value=".{1,6}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   VesselIMOType                    ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselIMOType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel IMO" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="10" />
      <xs:pattern value=".{1,10}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===                   VesselNameType                   ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselNameType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Name" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="25" />
      <xs:pattern value=".{1,25}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            VesselPortOfRegistrationType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselPortOfRegistrationType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Port of Registration" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="3" />
      <xs:pattern value=".{1,3}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===            VesselRegistrationNumberType            ===-->
  <!--==========================================================-->
  <xs:simpleType name="VesselRegistrationNumberType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Vessel Registration Number" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:maxLength value="255" />
      <xs:pattern value=".{1,255}" />
    </xs:restriction>
  </xs:simpleType>
  <!--==========================================================-->
  <!--===               WarehouseReferenceType               ===-->
  <!--==========================================================-->
  <xs:simpleType name="WarehouseReferenceType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="Warehouse Reference" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:length value="13" />
      <xs:pattern value=".{13}" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>

