Schema ManifestMessage v4.0.xsd


schema location:  C:\FileServer\users\hugo\ManifestMessage v4.0.xsd
 
Elements  Simple types 
DateTimePeriod  decimal12 
FreeTextNode  decimal15 
ManifestMessage  decimal18 
ReferenceDateTimePeriod  decimal2 
decimal3 
decimal4 
decimal5 
decimal6 
decimal8 
integer1..n 
string0..1 
string0..10 
string0..17 
string0..18 
string0..25 
string0..26 
string0..3 
string0..35 
string0..4 
string0..6 
string0..7 
string0..70 
string0..8 
string0..9 
string1..10 
string1..14 
string1..15 
string1..17 
string1..18 
string1..2 
string1..25 
string1..3 
string1..35 
string1..350 
string1..512 
string1..6 
string1..70 
string1..8 
string1..9 


element DateTimePeriod
diagram
properties
content complex
children DateTimePeriodQualifier DateTimePeriod DateTimePeriodFormatQualifier
annotation
documentation 
DTM - Element to indicate the date/time of the document/message
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DateTimePeriodQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="137">
              <xs:annotation>
                <xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod">
        <xs:annotation>
          <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriodFormatQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="203">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="303">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element DateTimePeriod/DateTimePeriodQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 137
annotation
documentation 
Code giving specific meaning to a date, time or period
source
<xs:element name="DateTimePeriodQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="137">
        <xs:annotation>
          <xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element DateTimePeriod/DateTimePeriod
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The value of a date, a date and a tiem, a time or a period, in a specified representation
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element DateTimePeriod/DateTimePeriodFormatQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 203
enumeration 303
annotation
documentation 
Specification of the representation of a date, date and time or a period
source
<xs:element name="DateTimePeriodFormatQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="203">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="303">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element FreeTextNode
diagram
type string1..350
properties
content simple
used by
elements ManifestMessage/ConsignmentInformation/ConsignmentFreeText ManifestMessage/FreeText ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText
facets
minLength 1
maxLength 350
annotation
documentation 
Free text
source
<xs:element name="FreeTextNode" type="string1..350">
  <xs:annotation>
    <xs:documentation>Free text</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage
diagram
properties
content complex
children MessageHeader BeginningOfMessage DateTimePeriod FreeText ControlTotal Reference GovernmentalRequirements NameAndAddress TransportDetails ConsignmentInformation MessageTrailler
annotation
documentation 
A message to be used for consolidation purposes, from a party arranging forwarding and transport services to the party for which the transport of the consolidated cargo  is destined
source
<xs:element name="ManifestMessage">
  <xs:annotation>
    <xs:documentation>A message to be used for consolidation purposes, from a party arranging forwarding and transport services to the party for which the transport of the consolidated cargo  is destined</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MessageHeader">
        <xs:annotation>
          <xs:documentation>UNH - Service element to uniquely identify the message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MessageReferenceNumber" type="string1..14">
              <xs:annotation>
                <xs:documentation>Unique message reference</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="MessageTypeIdentifier">
              <xs:annotation>
                <xs:documentation>Type of message assigned by its control agency</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..6">
                  <xs:enumeration value="IFCSUM">
                    <xs:annotation>
                      <xs:documentation>Forwarding and consolidation summary message</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MessageTypeVersionNumber">
              <xs:annotation>
                <xs:documentation>Version number of the message</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="D">
                    <xs:annotation>
                      <xs:documentation>Draft Version/UN/EDIFACT Directory</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MessageTypeReleaseNumber">
              <xs:annotation>
                <xs:documentation>Release number within the current message type version number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="97A">
                    <xs:annotation>
                      <xs:documentation>Release 1997 - A</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ControlingAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency controlling the specification, maintenance and publication of the message type</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..2">
                  <xs:enumeration value="UN">
                    <xs:annotation>
                      <xs:documentation>UN/ECE/TRADE/WP.4</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="AssociationAssignedCode" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code, assigned by the association responsible for the design and maintenance  of the message type concerned, that further identifies the message</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..6"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="BeginningOfMessage">
        <xs:annotation>
          <xs:documentation>BGM - Element to indicate the beginning of the message and transmit the identifying number, date, type and function</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DocumentName">
              <xs:annotation>
                <xs:documentation>Document/Message identifier name, coded</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="785">
                    <xs:annotation>
                      <xs:documentation>Cargo manifest</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="833">
                    <xs:annotation>
                      <xs:documentation>Cargo declaration (departure). Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DocumentNumber">
              <xs:annotation>
                <xs:documentation>Reference number assigned to the document/message by the issuer</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MessageFunction">
              <xs:annotation>
                <xs:documentation>Code indicating the function of the message</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Cancellation</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Addition</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Deletion</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Change</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Replace</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="9">
                    <xs:annotation>
                      <xs:documentation>original</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="22">
                    <xs:annotation>
                      <xs:documentation>Final Transmission</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="33">
                    <xs:annotation>
                      <xs:documentation>Change in heading section</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="46">
                    <xs:annotation>
                      <xs:documentation>Provisional.Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="47">
                    <xs:annotation>
                      <xs:documentation>Definitive. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DateTimePeriod" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DateTimePeriodQualifier">
              <xs:annotation>
                <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="137">
                    <xs:annotation>
                      <xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="243">
                    <xs:annotation>
                      <xs:documentation>Transmission date/time of the document</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriod">
              <xs:annotation>
                <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriodFormatQualifier">
              <xs:annotation>
                <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                  <xs:enumeration value="203">
                    <xs:annotation>
                      <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="303">
                    <xs:annotation>
                      <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="FreeText" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TextSubjectQualifier">
              <xs:annotation>
                <xs:documentation>Code specifying the subject of the free text</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAI">
                    <xs:annotation>
                      <xs:documentation>General information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="FreeTextNode"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ControlTotal">
        <xs:annotation>
          <xs:documentation>CNT - Element to specify totals of the consolidation (eg. total number of equipment, total numver of consignements, total gross weight and/or dimensions of the whole consolidation, etc)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ControlQualifier">
              <xs:annotation>
                <xs:documentation>Determines the source data elements which form the basis for the 6066 control value</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="10">
                    <xs:annotation>
                      <xs:documentation>Total number of consignements</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ControlValue" type="decimal18">
              <xs:annotation>
                <xs:documentation>Value obtained from summing the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="MeasureUnitQualifier" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Indication of the unit of measurement in which a quantity is expressed</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Reference" maxOccurs="4">
        <xs:annotation>
          <xs:documentation>RFF - Group of elements containing  references and constants that apply to the entire message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceQualifier">
              <xs:annotation>
                <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="ABO">
                    <xs:annotation>
                      <xs:documentation>Originator's reference</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ACW">
                    <xs:annotation>
                      <xs:documentation>Reference number to a previous message</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFB">
                    <xs:annotation>
                      <xs:documentation>Cargo manifest number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFM">
                    <xs:annotation>
                      <xs:documentation>Secondary customs reference</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ATZ">
                    <xs:annotation>
                      <xs:documentation>Ship's stay reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="VON">
                    <xs:annotation>
                      <xs:documentation>Voyage number. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ReferenceNumber">
              <xs:annotation>
                <xs:documentation>Identification number.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="ReferenceDateTimePeriod" minOccurs="0" maxOccurs="2"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GovernmentalRequirements" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>GOR - An element to give information about the current customs procedure under which the transport is moving or to indicate applicable governmental procedures to import, export and transit of the voyage, flight or consolidation</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TransportMovement">
              <xs:annotation>
                <xs:documentation>Code indicating the type of movement of the goods</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Export</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Import</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Transit</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS0">
                    <xs:annotation>
                      <xs:documentation>Simplified Transit Procedure not admitted</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS1">
                    <xs:annotation>
                      <xs:documentation>Simplified Transit Procedure Level 1 article 447, EC regulation no. 2454/93 of the Commission</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS2">
                    <xs:annotation>
                      <xs:documentation>Simplified Transit Procedure Level 2 article 448, EC regulation no. 2454/93 of the Comission</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="GovernmentAgency">
              <xs:annotation>
                <xs:documentation>Indicates which government agency is involved</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Customs</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NameAndAddress" maxOccurs="5">
        <xs:annotation>
          <xs:documentation>NAD - An element to identify the party's name and contacts</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PartyQualifier">
              <xs:annotation>
                <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AE">
                    <xs:annotation>
                      <xs:documentation>Declarant's agent/representative</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CG">
                    <xs:annotation>
                      <xs:documentation>Carrier's agent</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CM">
                    <xs:annotation>
                      <xs:documentation>Customs</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CV">
                    <xs:annotation>
                      <xs:documentation>Consignee of vessel. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MR">
                    <xs:annotation>
                      <xs:documentation>Message recipient</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MS">
                    <xs:annotation>
                      <xs:documentation>Document/message issuer/sender</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PartyId">
              <xs:annotation>
                <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="113">
                    <xs:annotation>
                      <xs:documentation>Customs office</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="167">
                    <xs:annotation>
                      <xs:documentation>Tax party identification</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency resopnsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                  <xs:enumeration value="9">
                    <xs:annotation>
                      <xs:documentation>EAN (International Article Numbering association)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="155">
                    <xs:annotation>
                      <xs:documentation>PT, Portuguese Customs</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NameAndAddress" type="string1..35" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Unstructured name and address. This entity is required for parners who use the Data Entry application</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Country" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ContactInformation" minOccurs="0">
              <xs:annotation>
                <xs:documentation>CTA - A group of elements to identify a party's contacts</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ContactFunction">
                    <xs:annotation>
                      <xs:documentation>Function of the contact (department of person)</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="BF">
                          <xs:annotation>
                            <xs:documentation>Service contact</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="IC">
                          <xs:annotation>
                            <xs:documentation>Information contact</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DepartmentEmployeeIdentification" type="string1..17" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Internal identification code. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="DepartmentEmployee" type="string1..35">
                    <xs:annotation>
                      <xs:documentation>The department of person within an organizational unit</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="CommunicationContact" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>COM - Element to hold the communication number of a person or department to whom the it should be addressed</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="CommunicationNumber">
                          <xs:annotation>
                            <xs:documentation>The communication number</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..512"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CommunicationChannelQualifier">
                          <xs:annotation>
                            <xs:documentation>Identifier of the communications' channel type</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TransportDetails" minOccurs="0">
        <xs:annotation>
          <xs:documentation>TDT - Group of elements to describe all transport details of the voyage/flight or consolidation, and of all parties involved.  This element is provided for backward compatibility only. the elements within will be ignored</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TransportStageQualifier">
              <xs:annotation>
                <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="20">
                    <xs:annotation>
                      <xs:documentation>Main-carriage transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ConveyanceReferenceNumber">
              <xs:annotation>
                <xs:documentation>Unique reference given by the carrier to a certain journey or departure of a means of transport</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..17"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ModeOfTransport">
              <xs:annotation>
                <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeansOfTransportIMONumber">
              <xs:annotation>
                <xs:documentation>Identification of the means of transport. IMO number.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="146">
                    <xs:annotation>
                      <xs:documentation>Means of transport identification</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="54">
                    <xs:annotation>
                      <xs:documentation>IMO (International Maritime Organisation)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="IdOfTheMeansOfTransport" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Vessel's name</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NationalityOfMeansOfTransport" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Coded name of the country where the means of transportation is registered. ISO3166 country codes</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="LocationIdentification" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>LOC - A segment indicating relevant locations related to the transport of the consolidation </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PlaceLocationQualifier">
                    <xs:annotation>
                      <xs:documentation>Code identifying the function of a location</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="61">
                          <xs:annotation>
                            <xs:documentation>Next port of call</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="92">
                          <xs:annotation>
                            <xs:documentation>Routing</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocationIdentification">
                    <xs:annotation>
                      <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..25"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListQualifier">
                    <xs:annotation>
                      <xs:documentation>Identification of a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="139">
                          <xs:annotation>
                            <xs:documentation>Port</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:maxLength value="3"/>
                        <xs:enumeration value="6">
                          <xs:annotation>
                            <xs:documentation>UN/ECE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocation" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..70">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>DTD - Element to indicate the date/time of a reference</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DateTimePeriodQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="132">
                          <xs:annotation>
                            <xs:documentation>Arrival date/time, estimated</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="133">
                          <xs:annotation>
                            <xs:documentation>Departure date/time, estimated</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DateTimePeriod" type="string1..35">
                    <xs:annotation>
                      <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="DateTimePeriodFormatQualifier">
                    <xs:annotation>
                      <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="203">
                          <xs:annotation>
                            <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="303">
                          <xs:annotation>
                            <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ConsignmentInformation" minOccurs="0" maxOccurs="9999">
        <xs:annotation>
          <xs:documentation>CNI - Element to indicate consignments included in the consolidation using the transport document/message number</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ConsolidationItemNumber">
              <xs:annotation>
                <xs:documentation>Serial number differentiating each separate consignment included in the consolidation</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="decimal4"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DocumentMessageNumber" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Reference number assigned to the document/message by the issuer. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DocumentMessageStatus" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code to identify the status of a document/message</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="ZZ1">
                    <xs:annotation>
                      <xs:documentation>(Provided for backwards compatibility. Will be treated like a goods consignment except empty container bill)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ2">
                    <xs:annotation>
                      <xs:documentation>(Provided for backwards compatibility. Will be treated like travel service)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ3">
                    <xs:annotation>
                      <xs:documentation>(Provided for backwards compatibility. Will be treated like empty container bill)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ControlTotal" maxOccurs="6">
              <xs:annotation>
                <xs:documentation>CNT - An element to specify totals for a consignment</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ControlQualifier">
                    <xs:annotation>
                      <xs:documentation>Determines the source data elements in the message which forms the basis for ControlValue attribute</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="7">
                          <xs:annotation>
                            <xs:documentation>Total gross weight</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="11">
                          <xs:annotation>
                            <xs:documentation>Total number of packages</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="16">
                          <xs:annotation>
                            <xs:documentation>Total number of equipment</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="26">
                          <xs:annotation>
                            <xs:documentation>Total gross measurement/cube</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="30">
                          <xs:annotation>
                            <xs:documentation>Total number of empty containers</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ControlValue" type="decimal18">
                    <xs:annotation>
                      <xs:documentation>Value obtained from smming the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="MeasureUnitQualifier" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Indication of the unit of measurement in which the quantity is expressed</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="KGM">
                          <xs:annotation>
                            <xs:documentation>Kilogram</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MTQ">
                          <xs:annotation>
                            <xs:documentation>Cubic meter</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ConsignmentFreeText" minOccurs="0" maxOccurs="4">
              <xs:annotation>
                <xs:documentation>FTX - An element to give free form information</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TextSubjectQualifier">
                    <xs:annotation>
                      <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAI">
                          <xs:annotation>
                            <xs:documentation>General information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAS">
                          <xs:annotation>
                            <xs:documentation>Bill of lading remarks. Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BLR">
                          <xs:annotation>
                            <xs:documentation>Transport document remarks</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CHG">
                          <xs:annotation>
                            <xs:documentation>Change information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CUS">
                          <xs:annotation>
                            <xs:documentation>Customs declaration information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element ref="FreeTextNode"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="LocationIdentification" maxOccurs="5">
              <xs:annotation>
                <xs:documentation>LOC - A segment to identify a location applying to the entire consignment.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PlaceLocationQualifier">
                    <xs:annotation>
                      <xs:documentation>Code identifying the function of a location</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>Place of departure</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="7">
                          <xs:annotation>
                            <xs:documentation>Place of delivery</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="8">
                          <xs:annotation>
                            <xs:documentation>Place of destination. Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="9">
                          <xs:annotation>
                            <xs:documentation>Place/port of loading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="11">
                          <xs:annotation>
                            <xs:documentation>Place/port of discharge</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="88">
                          <xs:annotation>
                            <xs:documentation>Place of receipt</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="91">
                          <xs:annotation>
                            <xs:documentation>Place of document issue</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocationIdentification">
                    <xs:annotation>
                      <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..25"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListQualifier">
                    <xs:annotation>
                      <xs:documentation>Identification of a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="139">
                          <xs:annotation>
                            <xs:documentation>Port</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="162">
                          <xs:annotation>
                            <xs:documentation>Country</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>ISO</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="6">
                          <xs:annotation>
                            <xs:documentation>UN/ECE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocation" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..70">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Reference" maxOccurs="999">
              <xs:annotation>
                <xs:documentation>RFF - A group of elements containing a reference and constants which apply to the entire consignment</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving a specific meaning to a reference element or a reference number</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAE">
                          <xs:annotation>
                            <xs:documentation>Goods declaration number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAM">
                          <xs:annotation>
                            <xs:documentation>Waybill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAO">
                          <xs:annotation>
                            <xs:documentation>Consignee's shipment number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAS">
                          <xs:annotation>
                            <xs:documentation>Transport document number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABE">
                          <xs:annotation>
                            <xs:documentation>Declarant's reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABH">
                          <xs:annotation>
                            <xs:documentation>Sub-house bill of landing number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABT">
                          <xs:annotation>
                            <xs:documentation>Customs declaration number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ACW">
                          <xs:annotation>
                            <xs:documentation>Reference number to a previous message</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ADO">
                          <xs:annotation>
                            <xs:documentation>Container work order reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEI">
                          <xs:annotation>
                            <xs:documentation>Registration number of previous customs declaration</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEV">
                          <xs:annotation>
                            <xs:documentation>Shipping note number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEW">
                          <xs:annotation>
                            <xs:documentation>Empty container bill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEX">
                          <xs:annotation>
                            <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AFA">
                          <xs:annotation>
                            <xs:documentation>Through bill of landing number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AFM">
                          <xs:annotation>
                            <xs:documentation>Secondary Customs reference</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AHI">
                          <xs:annotation>
                            <xs:documentation>Transport contract reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AKR">
                          <xs:annotation>
                            <xs:documentation>General cargo consignment reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ANK">
                          <xs:annotation>
                            <xs:documentation>Reference number assigned by a third party</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AUE">
                          <xs:annotation>
                            <xs:documentation>Travel service</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AUG">
                          <xs:annotation>
                            <xs:documentation>Importer's letter of credit reference</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BM">
                          <xs:annotation>
                            <xs:documentation>Bill of landing number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BN">
                          <xs:annotation>
                            <xs:documentation>Booking reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CN">
                          <xs:annotation>
                            <xs:documentation>Carrier's reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CR">
                          <xs:annotation>
                            <xs:documentation>Customer reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CU">
                          <xs:annotation>
                            <xs:documentation>Consignor's reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="DQ">
                          <xs:annotation>
                            <xs:documentation>Delivery note number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MB">
                          <xs:annotation>
                            <xs:documentation>Master bill of landing number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="PK">
                          <xs:annotation>
                            <xs:documentation>Packing list number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="UCN">
                          <xs:annotation>
                            <xs:documentation>Unique consignment reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ReferenceNumber">
                    <xs:annotation>
                      <xs:documentation>Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element ref="ReferenceDateTimePeriod"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DetailsOfTransport" minOccurs="0" maxOccurs="2">
              <xs:annotation>
                <xs:documentation>TDT - An element to indicate information related to a certain stage ot the transport, such as mode, means and carrier</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TransportStageQualifier">
                    <xs:annotation>
                      <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="10">
                          <xs:annotation>
                            <xs:documentation>Pre-carriage transport</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="30">
                          <xs:annotation>
                            <xs:documentation>On-carriage transport</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ModeOfTransport">
                    <xs:annotation>
                      <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="0">
                          <xs:annotation>
                            <xs:documentation>Transport mode not specified</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="1">
                          <xs:annotation>
                            <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="2">
                          <xs:annotation>
                            <xs:documentation>Rail</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="3">
                          <xs:annotation>
                            <xs:documentation>Road</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="4">
                          <xs:annotation>
                            <xs:documentation>Air transport</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>Mail</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="7">
                          <xs:annotation>
                            <xs:documentation>Fixed transport isntallation</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="8">
                          <xs:annotation>
                            <xs:documentation>Inland water transport</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZZ1">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZZ2">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZZ3">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZZ5">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZZ6">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="NameAndAddress" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>NAD - An element to identify the party's name, address and function</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PartyQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AG">
                          <xs:annotation>
                            <xs:documentation>Agent/representative</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CA">
                          <xs:annotation>
                            <xs:documentation>Carrier</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CM">
                          <xs:annotation>
                            <xs:documentation>Customs</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CN">
                          <xs:annotation>
                            <xs:documentation>Consignee</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CZ">
                          <xs:annotation>
                            <xs:documentation>Consignor</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="N1">
                          <xs:annotation>
                            <xs:documentation>Notify party no.1</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="N2">
                          <xs:annotation>
                            <xs:documentation>Notify party no.2</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="NI">
                          <xs:annotation>
                            <xs:documentation>Notify party</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="OS">
                          <xs:annotation>
                            <xs:documentation>Original shipper</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="PartyIdentificationDetails" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Identification of a transaction party involved. Required when the paty is Portuguese</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="PartyId">
                            <xs:annotation>
                              <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..35"/>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="CodeListQualifier">
                            <xs:annotation>
                              <xs:documentation>Identification of a code list</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..3">
                                <xs:enumeration value="113">
                                  <xs:annotation>
                                    <xs:documentation>Customs office</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                                <xs:enumeration value="167">
                                  <xs:annotation>
                                    <xs:documentation>Tax party identification</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="CodeListResponsibleAgency">
                            <xs:annotation>
                              <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..3">
                                <xs:enumeration value="155">
                                  <xs:annotation>
                                    <xs:documentation>PT, Portuguese customs</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="FreeNameAndAddress" type="string1..350">
                      <xs:annotation>
                        <xs:documentation>Unstructured name and address. One to five lines. Required when the party is not Portuguese</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                  <xs:element name="CityName">
                    <xs:annotation>
                      <xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..9">
                        <xs:maxLength value="9"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CountrySubentityIdentification" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..9">
                        <xs:maxLength value="9"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PostcodeIdentification" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..9">
                        <xs:maxLength value="9"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Country">
                    <xs:annotation>
                      <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="GoodsItemDetails" minOccurs="0" maxOccurs="999">
              <xs:annotation>
                <xs:documentation>GID - A group of elements to describe the goods items for chich transport is undertaken. Agoods item can ben identified by up to three levels of packaging</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="GoodsItemNumber">
                    <xs:annotation>
                      <xs:documentation>Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="decimal5"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="NumberOfPackages">
                    <xs:annotation>
                      <xs:documentation>Number of undivisible parts of a shipment (without undoing the packing)</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="decimal8">
                        <xs:totalDigits value="8"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="TypeOfPackagesIdentification">
                    <xs:annotation>
                      <xs:documentation>Coded description of the form in which the goods are presented</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..17"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListQualifier">
                    <xs:annotation>
                      <xs:documentation>Identification of a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="67">
                          <xs:annotation>
                            <xs:documentation>Type of package</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="6">
                          <xs:annotation>
                            <xs:documentation>UN/ECE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="TypeOfPackages" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Description of the form in which goods are presented. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="LocationIdentification" minOccurs="0" maxOccurs="2">
                    <xs:annotation>
                      <xs:documentation>LOC - An element to specify a country associated with a goods item, such as a country of origin or destination</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="PlaceLocationQualifier">
                          <xs:annotation>
                            <xs:documentation>Code identifying the function of a location</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="76">
                                <xs:annotation>
                                  <xs:documentation>Original port of loading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="164">
                                <xs:annotation>
                                  <xs:documentation>Berth</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PlaceLocationIdentification">
                          <xs:annotation>
                            <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..25"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CodeListQualifier">
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="139">
                                <xs:annotation>
                                  <xs:documentation>Port</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CodeListResponsibleAgency">
                          <xs:annotation>
                            <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="6">
                                <xs:annotation>
                                  <xs:documentation>UN/ECE</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PlaceLocation" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Name of the place/location, other than 3164 city name</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..70"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Specification of the first related place/location by code</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..25"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="MonetaryAmount" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MonetaryAmountTypeQualifier">
                          <xs:annotation>
                            <xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="39">
                                <xs:annotation>
                                  <xs:documentation>Invoice total amount</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MonetaryAmountQTY" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Number of monetary units</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..18"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CurrencyCoded" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="EUR">
                                <xs:annotation>
                                  <xs:documentation>EURO</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="AdditionalProductID" minOccurs="0" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>PIA - A group to specify article numbers</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ProductId">
                          <xs:annotation>
                            <xs:documentation>Indication of the function of the product code</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="5">
                                <xs:annotation>
                                  <xs:documentation>Product Identification</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="ItemNumber">
                          <xs:annotation>
                            <xs:documentation>A number allocated to a group or item</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..35"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="ItemNumberType">
                          <xs:annotation>
                            <xs:documentation>Identification of the type of item number</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="HS">
                                <xs:annotation>
                                  <xs:documentation>Harmonised system</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="FreeText" maxOccurs="5">
                    <xs:annotation>
                      <xs:documentation>FTX - An element to give information and/or processable instructions in adition to those in other elements</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="TextSubjectQualifier">
                          <xs:annotation>
                            <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:maxLength value="3"/>
                              <xs:enumeration value="AAA">
                                <xs:annotation>
                                  <xs:documentation>Goods description</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAI">
                                <xs:annotation>
                                  <xs:documentation>General information</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CUS">
                                <xs:annotation>
                                  <xs:documentation>Customs declaration information</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="TRA">
                                <xs:annotation>
                                  <xs:documentation>Transportation information
General information regarding the transport of the cargo.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element ref="FreeTextNode"/>
                        <xs:element name="LanguageCoded" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code of language (ISO 639-1988).</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType name="Code">
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="EN">
                                <xs:annotation>
                                  <xs:documentation>English</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="PT">
                                <xs:annotation>
                                  <xs:documentation>Portuguese</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="NameAndAddress" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>NAD - An element to specify an address of a place of collection or delivery for a goods item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="PartyQualifier">
                          <xs:annotation>
                            <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="CA">
                                <xs:annotation>
                                  <xs:documentation>Carrier</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CN">
                                <xs:annotation>
                                  <xs:documentation>Consignee</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CZ">
                                <xs:annotation>
                                  <xs:documentation>Consignor</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="EX">
                                <xs:annotation>
                                  <xs:documentation>Exporter</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="IM">
                                <xs:annotation>
                                  <xs:documentation>Importer</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="MS">
                                <xs:annotation>
                                  <xs:documentation>Document/message issuer/sender</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="N1">
                                <xs:annotation>
                                  <xs:documentation>Notify party no.1</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="N2">
                                <xs:annotation>
                                  <xs:documentation>Notify party no.2</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="NI">
                                <xs:annotation>
                                  <xs:documentation>Notify party</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="OS">
                                <xs:annotation>
                                  <xs:documentation>Original shipper</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="TR">
                                <xs:annotation>
                                  <xs:documentation>Terminal operator</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="WD">
                                <xs:annotation>
                                  <xs:documentation>Warehouse depositor</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="WH">
                                <xs:annotation>
                                  <xs:documentation>Warehouse keeper</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZOP">
                                <xs:annotation>
                                  <xs:documentation>Only provided for backward compatibility</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:choice>
                          <xs:element name="PartyIdentificationDetails" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="PartyId">
                                  <xs:annotation>
                                    <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="string1..35"/>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="CodeListQualifier">
                                  <xs:annotation>
                                    <xs:documentation>Identification of a code list</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="string1..3">
                                      <xs:enumeration value="167">
                                        <xs:annotation>
                                          <xs:documentation>Tax party identification</xs:documentation>
                                        </xs:annotation>
                                      </xs:enumeration>
                                      <xs:enumeration value="Z01">
                                        <xs:annotation>
                                          <xs:documentation>Authorized entity identification</xs:documentation>
                                        </xs:annotation>
                                      </xs:enumeration>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="CodeListResponsibleAgency">
                                  <xs:annotation>
                                    <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="string1..3">
                                      <xs:enumeration value="155">
                                        <xs:annotation>
                                          <xs:documentation>PT, Portuguese customs</xs:documentation>
                                        </xs:annotation>
                                      </xs:enumeration>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="FreeNameAndAddress" type="string1..512">
                            <xs:annotation>
                              <xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:choice>
                        <xs:element name="CountrySubentityIdentification" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..9">
                              <xs:maxLength value="9"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PostcodeIdentification" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..9">
                              <xs:maxLength value="9"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="Country">
                          <xs:annotation>
                            <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:maxLength value="3"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="NatureOfCargo" maxOccurs="2">
                    <xs:annotation>
                      <xs:documentation>GDS - An element to describe the nature of the cargo</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="NatureOfCargo">
                          <xs:annotation>
                            <xs:documentation>Code indicating the type of cargo as a rough classification</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CodeListResponsibleAgency" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="2">
                                <xs:annotation>
                                  <xs:documentation>CEC</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="Measurements" minOccurs="0" maxOccurs="2">
                    <xs:annotation>
                      <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MeasurementPurposeQualifier">
                          <xs:annotation>
                            <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="AAE">
                                <xs:annotation>
                                  <xs:documentation>Measurement</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAI">
                                <xs:annotation>
                                  <xs:documentation>Item weight. Only provided for backward compatibility</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="WT">
                                <xs:annotation>
                                  <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PropertyMeasured">
                          <xs:annotation>
                            <xs:documentation>Specification of the property measured</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="AAD">
                                <xs:annotation>
                                  <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ABJ">
                                <xs:annotation>
                                  <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="T"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasureUnitQualifier">
                          <xs:annotation>
                            <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="KGM">
                                <xs:annotation>
                                  <xs:documentation>Kilogram</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="MTQ">
                                <xs:annotation>
                                  <xs:documentation>Cubic meter</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasurementValue">
                          <xs:annotation>
                            <xs:documentation>Value of the measured quantity</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..18"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="Reference" minOccurs="0" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>RFF - An element to identify a reference to a goods item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="ReferenceQualifier">
                          <xs:annotation>
                            <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="AAB">
                                <xs:annotation>
                                  <xs:documentation>Proforma invoice number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAM">
                                <xs:annotation>
                                  <xs:documentation>Waybill number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAP">
                                <xs:annotation>
                                  <xs:documentation>Part consignment number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAS">
                                <xs:annotation>
                                  <xs:documentation>Transport document number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ABH">
                                <xs:annotation>
                                  <xs:documentation>Sub-house bill of ladign number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ABT">
                                <xs:annotation>
                                  <xs:documentation>Customs declaration number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AEE">
                                <xs:annotation>
                                  <xs:documentation>Eur 1 certificate number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AEW">
                                <xs:annotation>
                                  <xs:documentation>Empty container bill number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AEX">
                                <xs:annotation>
                                  <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AEZ">
                                <xs:annotation>
                                  <xs:documentation>Despatch note (post parcels) number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AFA">
                                <xs:annotation>
                                  <xs:documentation>Through bill of lading number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AFB">
                                <xs:annotation>
                                  <xs:documentation>Cargo manifest number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AFM">
                                <xs:annotation>
                                  <xs:documentation>Secondary Customs reference</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AHI">
                                <xs:annotation>
                                  <xs:documentation>Transport contract reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AHT">
                                <xs:annotation>
                                  <xs:documentation>Quarantine/treatment status reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AID">
                                <xs:annotation>
                                  <xs:documentation>Certificate of conformity</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AIZ">
                                <xs:annotation>
                                  <xs:documentation>Consolidated invoice number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AKA">
                                <xs:annotation>
                                  <xs:documentation>Container disposition order reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AKR">
                                <xs:annotation>
                                  <xs:documentation>General cargo consignment reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ALK">
                                <xs:annotation>
                                  <xs:documentation>Consignee's invoice number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="BH">
                                <xs:annotation>
                                  <xs:documentation>House bill of lading number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="BM">
                                <xs:annotation>
                                  <xs:documentation>Bill of lading number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="BN">
                                <xs:annotation>
                                  <xs:documentation>Booking reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CFO">
                                <xs:annotation>
                                  <xs:documentation>Consignor's further order</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CG">
                                <xs:annotation>
                                  <xs:documentation>Consignee's order number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CMR">
                                <xs:annotation>
                                  <xs:documentation>Road consignment note number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="CU">
                                <xs:annotation>
                                  <xs:documentation>Consignor's reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ED">
                                <xs:annotation>
                                  <xs:documentation>Export declaration</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="EX">
                                <xs:annotation>
                                  <xs:documentation>Export licence number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="FF">
                                <xs:annotation>
                                  <xs:documentation>Freight forwarders reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="HWB">
                                <xs:annotation>
                                  <xs:documentation>House waybill number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="IP">
                                <xs:annotation>
                                  <xs:documentation>Import licence number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="IV">
                                <xs:annotation>
                                  <xs:documentation>Invoice number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="MA">
                                <xs:annotation>
                                  <xs:documentation>Ship notice/manifest number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="MB">
                                <xs:annotation>
                                  <xs:documentation>Master bill of lading number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="MWB">
                                <xs:annotation>
                                  <xs:documentation>Master air waybill number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="PK">
                                <xs:annotation>
                                  <xs:documentation>Packing list number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="RCN">
                                <xs:annotation>
                                  <xs:documentation>Railway consignment </xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="SRN">
                                <xs:annotation>
                                  <xs:documentation>Shipment reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="TB">
                                <xs:annotation>
                                  <xs:documentation>Truckers's bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="UCN">
                                <xs:annotation>
                                  <xs:documentation>Unique consignment reference number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="WY">
                                <xs:annotation>
                                  <xs:documentation>Rail waybill number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="ReferenceNumber" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Identification number.</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..35"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element ref="ReferenceDateTimePeriod" maxOccurs="9"/>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="PackageIdentification" minOccurs="0" maxOccurs="999">
                    <xs:annotation>
                      <xs:documentation>PCI - An elemrent to specify marks and numbers of a goods item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MarkingInstructions" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code indicating instructions on how specified packages or physical units should be marked</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Shipping marks on packages in free text</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="ContainerPackageStatus" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="GovernmentalRequirements" minOccurs="0" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="TransportMovement" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code indicating the movement of goods (import, export, transit)</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="ZC">
                                <xs:annotation>
                                  <xs:documentation>Goods that their status can be proofed.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZF">
                                <xs:annotation>
                                  <xs:documentation>Shiiping of community goods with destination/origin in a EC Customs territory where where Directive 77/388/CEE is not applied.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZN">
                                <xs:annotation>
                                  <xs:documentation>Remaining goods</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZS0">
                                <xs:annotation>
                                  <xs:documentation>No Simplified Procedures</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZS1">
                                <xs:annotation>
                                  <xs:documentation>Simplified Procedures Level I</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZS2">
                                <xs:annotation>
                                  <xs:documentation>Simplified Procedures Level II</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZT1">
                                <xs:annotation>
                                  <xs:documentation>Goods subject to an external community transit regime.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZTD">
                                <xs:annotation>
                                  <xs:documentation>Goods subject to a transit regime or transported in the scope of the active perfectionism, deposit or temporary import.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZTF">
                                <xs:annotation>
                                  <xs:documentation>Goods subject to internal transit regime from, to or between non fiscal territories.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZW">
                                <xs:annotation>
                                  <xs:documentation>T2F Customs status.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ZX">
                                <xs:annotation>
                                  <xs:documentation>Community Goods to be exported not subject to a transit regime.</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="GovernmentAgency">
                          <xs:annotation>
                            <xs:documentation>Code to indicate the government agency involved</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="5">
                                <xs:annotation>
                                  <xs:documentation>Customs</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="FreeText" minOccurs="0" maxOccurs="9">
                          <xs:annotation>
                            <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="TextSubjectQualifier">
                                <xs:annotation>
                                  <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="CUS">
                                      <xs:annotation>
                                        <xs:documentation>Customs declaration information</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element ref="FreeTextNode"/>
                              <xs:element name="LanguageCoded" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="PT">
                                      <xs:annotation>
                                        <xs:documentation>General information</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
                          <xs:annotation>
                            <xs:documentation>DOC - An element to indicate a document required by the government</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="DocumentMessageName">
                                <xs:annotation>
                                  <xs:documentation>Document/message identifier expressed in code</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="2">
                                      <xs:annotation>
                                        <xs:documentation>Certificate of conformity</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="3">
                                      <xs:annotation>
                                        <xs:documentation>Certificate of quality</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="18">
                                      <xs:annotation>
                                        <xs:documentation>Movement certificate A.TR.1</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="271">
                                      <xs:annotation>
                                        <xs:documentation>Packing list</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="380">
                                      <xs:annotation>
                                        <xs:documentation>Commercial invoice</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="650">
                                      <xs:annotation>
                                        <xs:documentation>Handling order</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="701">
                                      <xs:annotation>
                                        <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="703">
                                      <xs:annotation>
                                        <xs:documentation>House of waybill</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="704">
                                      <xs:annotation>
                                        <xs:documentation>Master bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="705">
                                      <xs:annotation>
                                        <xs:documentation>Bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="710">
                                      <xs:annotation>
                                        <xs:documentation>Sea waybill</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="712">
                                      <xs:annotation>
                                        <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="714">
                                      <xs:annotation>
                                        <xs:documentation>House bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="716">
                                      <xs:annotation>
                                        <xs:documentation>Forwarder's bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="720">
                                      <xs:annotation>
                                        <xs:documentation>Rail consignment note (generic term)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="722">
                                      <xs:annotation>
                                        <xs:documentation>Road list-SMGS</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="730">
                                      <xs:annotation>
                                        <xs:documentation>Road consignment note</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="740">
                                      <xs:annotation>
                                        <xs:documentation>Air waybill</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="741">
                                      <xs:annotation>
                                        <xs:documentation>Master air waybill</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="746">
                                      <xs:annotation>
                                        <xs:documentation>Delivery notice (rail transport)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="750">
                                      <xs:annotation>
                                        <xs:documentation>Dispatch note (post parcels)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="760">
                                      <xs:annotation>
                                        <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="761">
                                      <xs:annotation>
                                        <xs:documentation>Through bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="763">
                                      <xs:annotation>
                                        <xs:documentation>Forwarder's certificate of transport</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="764">
                                      <xs:annotation>
                                        <xs:documentation>Combined transport document (generic)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="765">
                                      <xs:annotation>
                                        <xs:documentation>Multimodal transport document (generic)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="766">
                                      <xs:annotation>
                                        <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="785">
                                      <xs:annotation>
                                        <xs:documentation>Cargo manifest</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="787">
                                      <xs:annotation>
                                        <xs:documentation>Bordereau</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="796">
                                      <xs:annotation>
                                        <xs:documentation>Derat document</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="797">
                                      <xs:annotation>
                                        <xs:documentation>Maritime declaration of health</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="820">
                                      <xs:annotation>
                                        <xs:documentation>Dispatch note model T</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="821">
                                      <xs:annotation>
                                        <xs:documentation>Dispatch note model T1</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="822">
                                      <xs:annotation>
                                        <xs:documentation>Dispatch note model T2</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="823">
                                      <xs:annotation>
                                        <xs:documentation>Control document T5</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="825">
                                      <xs:annotation>
                                        <xs:documentation>Dispatch note model T2L</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="830">
                                      <xs:annotation>
                                        <xs:documentation>Goods declaration for exportation</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="851">
                                      <xs:annotation>
                                        <xs:documentation>Phytosanitary certificate</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="852">
                                      <xs:annotation>
                                        <xs:documentation>Sanitary certificate</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="853">
                                      <xs:annotation>
                                        <xs:documentation>Sanitary certificate</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="861">
                                      <xs:annotation>
                                        <xs:documentation>Certificate of origin</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="862">
                                      <xs:annotation>
                                        <xs:documentation>Declaration of origin</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="864">
                                      <xs:annotation>
                                        <xs:documentation>Preference certificate of origin</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="865">
                                      <xs:annotation>
                                        <xs:documentation>Certificate of origin from GSP</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="933">
                                      <xs:annotation>
                                        <xs:documentation>Cargo declaration (arrival)</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="941">
                                      <xs:annotation>
                                        <xs:documentation>Embargo permit</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="951">
                                      <xs:annotation>
                                        <xs:documentation>TIF form</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="952">
                                      <xs:annotation>
                                        <xs:documentation>TIR carnet</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="954">
                                      <xs:annotation>
                                        <xs:documentation>EUR 1 certificate of origin</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="955">
                                      <xs:annotation>
                                        <xs:documentation>ATA carnet</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="960">
                                      <xs:annotation>
                                        <xs:documentation>Single administrative document</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z01">
                                      <xs:annotation>
                                        <xs:documentation>T2LF</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z02">
                                      <xs:annotation>
                                        <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z03">
                                      <xs:annotation>
                                        <xs:documentation>Customs status certificate</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z04">
                                      <xs:annotation>
                                        <xs:documentation>DAA</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z05">
                                      <xs:annotation>
                                        <xs:documentation>Administrative document</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z06">
                                      <xs:annotation>
                                        <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Z99">
                                      <xs:annotation>
                                        <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="DocumentMessageNumber">
                                <xs:simpleType>
                                  <xs:restriction base="string1..35"/>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="DateTimePeriod">
                                <xs:annotation>
                                  <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="DateTimePeriodQualifier">
                                      <xs:annotation>
                                        <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
                                      </xs:annotation>
                                      <xs:simpleType>
                                        <xs:restriction base="string1..3">
                                          <xs:enumeration value="182">
                                            <xs:annotation>
                                              <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
                                            </xs:annotation>
                                          </xs:enumeration>
                                        </xs:restriction>
                                      </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="DateTimePeriod">
                                      <xs:annotation>
                                        <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
                                      </xs:annotation>
                                      <xs:simpleType>
                                        <xs:restriction base="string1..35"/>
                                      </xs:simpleType>
                                    </xs:element>
                                    <xs:element name="DateTimePeriodFormatQualifier">
                                      <xs:annotation>
                                        <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
                                      </xs:annotation>
                                      <xs:simpleType>
                                        <xs:restriction base="string1..3">
                                          <xs:maxLength value="3"/>
                                          <xs:enumeration value="102">
                                            <xs:annotation>
                                              <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
                                            </xs:annotation>
                                          </xs:enumeration>
                                          <xs:enumeration value="602">
                                            <xs:annotation>
                                              <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
                                            </xs:annotation>
                                          </xs:enumeration>
                                        </xs:restriction>
                                      </xs:simpleType>
                                    </xs:element>
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="SplitGoodsPlacement" minOccurs="0" maxOccurs="999">
                    <xs:annotation>
                      <xs:documentation>SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="EquipmentIdentificationNumber">
                          <xs:annotation>
                            <xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..17"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                        <xs:element name="Measurements" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="MeasurementPurposeQualifier">
                                <xs:annotation>
                                  <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="AAE">
                                      <xs:annotation>
                                        <xs:documentation>Measurement</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="AAI">
                                      <xs:annotation>
                                        <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="WT">
                                      <xs:annotation>
                                        <xs:documentation>Weights</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="PropertyMeasured">
                                <xs:annotation>
                                  <xs:documentation>Specification of the property measured</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="AAD">
                                      <xs:annotation>
                                        <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="ABJ">
                                      <xs:annotation>
                                        <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="T">
                                      <xs:annotation>
                                        <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="MeasureUnitQualifier">
                                <xs:annotation>
                                  <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="KGM">
                                      <xs:annotation>
                                        <xs:documentation>Kilogram</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="MeasurementValue">
                                <xs:annotation>
                                  <xs:documentation>Value of the measured quantity</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..18"/>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="NumberOfUnits" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="NumberOfUnits" type="string0..17">
                                      <xs:annotation>
                                        <xs:documentation>Number of units</xs:documentation>
                                      </xs:annotation>
                                    </xs:element>
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="EquipmentDetails" minOccurs="0" maxOccurs="999">
              <xs:annotation>
                <xs:documentation>EQD - An element to specify equipment, equipment size and type used in transport</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="EquipmentQualifier">
                    <xs:annotation>
                      <xs:documentation>Code identifying the type of equipment</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="EquipmentIdentificationNumber">
                    <xs:annotation>
                      <xs:documentation>Marks (letters or numbers) identifying the equipment used for transport</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..17"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="EquipmentSizeAndType">
                    <xs:annotation>
                      <xs:documentation>Code and/or name identifying size and type of the equipment used</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..10"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListQualifier">
                    <xs:annotation>
                      <xs:documentation>Identification of a code list.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="102">
                          <xs:annotation>
                            <xs:documentation>Empty</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="5"/>
                        <xs:enumeration value="6">
                          <xs:annotation>
                            <xs:documentation>Empty</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="FullEmptyIndicator">
                    <xs:annotation>
                      <xs:documentation>To indicate the extent of the equipment being full or empty</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="4">
                          <xs:annotation>
                            <xs:documentation>Empty</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>Full</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="7">
                          <xs:annotation>
                            <xs:documentation>Full, mixed consignment</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="8">
                          <xs:annotation>
                            <xs:documentation>Full, single consignment</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Measurements">
                    <xs:annotation>
                      <xs:documentation>MEA - An element to specify measurements, other than dimensions, associated with the equipment.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MeasurementPurposeQualifier">
                          <xs:annotation>
                            <xs:documentation>Specification of the purpose of the measurement</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="WT">
                                <xs:annotation>
                                  <xs:documentation>Weights</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PropertyMeasured">
                          <xs:annotation>
                            <xs:documentation>Specification of the property being measured</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="T">
                                <xs:annotation>
                                  <xs:documentation>Tare weight</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasureUnitQualifier">
                          <xs:annotation>
                            <xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="KGM">
                                <xs:annotation>
                                  <xs:documentation>Kilogram</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasurementValue">
                          <xs:annotation>
                            <xs:documentation>Value of the measured unit</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..18"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="SealNumber" minOccurs="0" maxOccurs="6">
                    <xs:annotation>
                      <xs:documentation>SEL - An element to identify the the seal and the seal issuer associated with the equipment</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="SealNumber">
                          <xs:annotation>
                            <xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..10"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="SealingPartyCoded" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Identification of the issuer of the seal number</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3"/>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MessageTrailler">
        <xs:annotation>
          <xs:documentation>UNT - A service element delimiting the end of the message and indicating the total number of segments and the control reference number of the message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="NumberOfSegments" type="decimal6">
              <xs:annotation>
                <xs:documentation>Control count of the segments in the message</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="MessageReferenceNumber" type="string1..14">
              <xs:annotation>
                <xs:documentation>Unique message reference number assigned by the sender</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/MessageHeader
diagram
properties
isRef 0
content complex
children MessageReferenceNumber MessageTypeIdentifier MessageTypeVersionNumber MessageTypeReleaseNumber ControlingAgency AssociationAssignedCode
annotation
documentation 
UNH - Service element to uniquely identify the message
source
<xs:element name="MessageHeader">
  <xs:annotation>
    <xs:documentation>UNH - Service element to uniquely identify the message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MessageReferenceNumber" type="string1..14">
        <xs:annotation>
          <xs:documentation>Unique message reference</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MessageTypeIdentifier">
        <xs:annotation>
          <xs:documentation>Type of message assigned by its control agency</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..6">
            <xs:enumeration value="IFCSUM">
              <xs:annotation>
                <xs:documentation>Forwarding and consolidation summary message</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MessageTypeVersionNumber">
        <xs:annotation>
          <xs:documentation>Version number of the message</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="D">
              <xs:annotation>
                <xs:documentation>Draft Version/UN/EDIFACT Directory</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MessageTypeReleaseNumber">
        <xs:annotation>
          <xs:documentation>Release number within the current message type version number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="97A">
              <xs:annotation>
                <xs:documentation>Release 1997 - A</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ControlingAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency controlling the specification, maintenance and publication of the message type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..2">
            <xs:enumeration value="UN">
              <xs:annotation>
                <xs:documentation>UN/ECE/TRADE/WP.4</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="AssociationAssignedCode" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code, assigned by the association responsible for the design and maintenance  of the message type concerned, that further identifies the message</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..6"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/MessageHeader/MessageReferenceNumber
diagram
type string1..14
properties
isRef 0
content simple
facets
minLength 1
maxLength 14
annotation
documentation 
Unique message reference
source
<xs:element name="MessageReferenceNumber" type="string1..14">
  <xs:annotation>
    <xs:documentation>Unique message reference</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/MessageHeader/MessageTypeIdentifier
diagram
type restriction of string1..6
properties
isRef 0
content simple
facets
minLength 1
maxLength 6
enumeration IFCSUM
annotation
documentation 
Type of message assigned by its control agency
source
<xs:element name="MessageTypeIdentifier">
  <xs:annotation>
    <xs:documentation>Type of message assigned by its control agency</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..6">
      <xs:enumeration value="IFCSUM">
        <xs:annotation>
          <xs:documentation>Forwarding and consolidation summary message</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/MessageHeader/MessageTypeVersionNumber
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration D
annotation
documentation 
Version number of the message
source
<xs:element name="MessageTypeVersionNumber">
  <xs:annotation>
    <xs:documentation>Version number of the message</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="D">
        <xs:annotation>
          <xs:documentation>Draft Version/UN/EDIFACT Directory</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/MessageHeader/MessageTypeReleaseNumber
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 97A
annotation
documentation 
Release number within the current message type version number
source
<xs:element name="MessageTypeReleaseNumber">
  <xs:annotation>
    <xs:documentation>Release number within the current message type version number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="97A">
        <xs:annotation>
          <xs:documentation>Release 1997 - A</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/MessageHeader/ControlingAgency
diagram
type restriction of string1..2
properties
isRef 0
content simple
facets
minLength 1
maxLength 2
enumeration UN
annotation
documentation 
Code identifying the agency controlling the specification, maintenance and publication of the message type
source
<xs:element name="ControlingAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency controlling the specification, maintenance and publication of the message type</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..2">
      <xs:enumeration value="UN">
        <xs:annotation>
          <xs:documentation>UN/ECE/TRADE/WP.4</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/MessageHeader/AssociationAssignedCode
diagram
type restriction of string1..6
properties
isRef 0
content simple
facets
minLength 1
maxLength 6
annotation
documentation 
Code, assigned by the association responsible for the design and maintenance  of the message type concerned, that further identifies the message
source
<xs:element name="AssociationAssignedCode" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code, assigned by the association responsible for the design and maintenance  of the message type concerned, that further identifies the message</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..6"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/BeginningOfMessage
diagram
properties
isRef 0
content complex
children DocumentName DocumentNumber MessageFunction
annotation
documentation 
BGM - Element to indicate the beginning of the message and transmit the identifying number, date, type and function
source
<xs:element name="BeginningOfMessage">
  <xs:annotation>
    <xs:documentation>BGM - Element to indicate the beginning of the message and transmit the identifying number, date, type and function</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentName">
        <xs:annotation>
          <xs:documentation>Document/Message identifier name, coded</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="785">
              <xs:annotation>
                <xs:documentation>Cargo manifest</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="833">
              <xs:annotation>
                <xs:documentation>Cargo declaration (departure). Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DocumentNumber">
        <xs:annotation>
          <xs:documentation>Reference number assigned to the document/message by the issuer</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MessageFunction">
        <xs:annotation>
          <xs:documentation>Code indicating the function of the message</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Cancellation</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Addition</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Deletion</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Change</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Replace</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="9">
              <xs:annotation>
                <xs:documentation>original</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="22">
              <xs:annotation>
                <xs:documentation>Final Transmission</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="33">
              <xs:annotation>
                <xs:documentation>Change in heading section</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="46">
              <xs:annotation>
                <xs:documentation>Provisional.Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="47">
              <xs:annotation>
                <xs:documentation>Definitive. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/BeginningOfMessage/DocumentName
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 785
enumeration 833
annotation
documentation 
Document/Message identifier name, coded
source
<xs:element name="DocumentName">
  <xs:annotation>
    <xs:documentation>Document/Message identifier name, coded</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="785">
        <xs:annotation>
          <xs:documentation>Cargo manifest</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="833">
        <xs:annotation>
          <xs:documentation>Cargo declaration (departure). Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/BeginningOfMessage/DocumentNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Reference number assigned to the document/message by the issuer
source
<xs:element name="DocumentNumber">
  <xs:annotation>
    <xs:documentation>Reference number assigned to the document/message by the issuer</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/BeginningOfMessage/MessageFunction
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 1
enumeration 2
enumeration 3
enumeration 4
enumeration 5
enumeration 9
enumeration 22
enumeration 33
enumeration 46
enumeration 47
annotation
documentation 
Code indicating the function of the message
source
<xs:element name="MessageFunction">
  <xs:annotation>
    <xs:documentation>Code indicating the function of the message</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Cancellation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Addition</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Deletion</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Change</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Replace</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:documentation>original</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="22">
        <xs:annotation>
          <xs:documentation>Final Transmission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="33">
        <xs:annotation>
          <xs:documentation>Change in heading section</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="46">
        <xs:annotation>
          <xs:documentation>Provisional.Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="47">
        <xs:annotation>
          <xs:documentation>Definitive. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/DateTimePeriod
diagram
properties
isRef 0
content complex
children DateTimePeriodQualifier DateTimePeriod DateTimePeriodFormatQualifier
annotation
documentation 
DTM - Element to indicate the date/time of the document/message
source
<xs:element name="DateTimePeriod" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DateTimePeriodQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="137">
              <xs:annotation>
                <xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="243">
              <xs:annotation>
                <xs:documentation>Transmission date/time of the document</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod">
        <xs:annotation>
          <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriodFormatQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="203">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="303">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/DateTimePeriod/DateTimePeriodQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 137
enumeration 243
annotation
documentation 
Code giving specific meaning to a date, time or period
source
<xs:element name="DateTimePeriodQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="137">
        <xs:annotation>
          <xs:documentation>Document/message date/time

Date/time when a document/message is issued. This may include auhentication</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="243">
        <xs:annotation>
          <xs:documentation>Transmission date/time of the document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/DateTimePeriod/DateTimePeriod
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The value of a date, a date and a tiem, a time or a period, in a specified representation
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/DateTimePeriod/DateTimePeriodFormatQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 203
enumeration 303
annotation
documentation 
Specification of the representation of a date, date and time or a period
source
<xs:element name="DateTimePeriodFormatQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="203">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="303">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/FreeText
diagram
properties
isRef 0
content complex
children TextSubjectQualifier FreeTextNode
annotation
documentation 
FTX - An element to specify  supplementary processable information
source
<xs:element name="FreeText" minOccurs="0" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TextSubjectQualifier">
        <xs:annotation>
          <xs:documentation>Code specifying the subject of the free text</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAI">
              <xs:annotation>
                <xs:documentation>General information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="FreeTextNode"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/FreeText/TextSubjectQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAI
annotation
documentation 
Code specifying the subject of the free text
source
<xs:element name="TextSubjectQualifier">
  <xs:annotation>
    <xs:documentation>Code specifying the subject of the free text</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAI">
        <xs:annotation>
          <xs:documentation>General information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ControlTotal
diagram
properties
isRef 0
content complex
children ControlQualifier ControlValue MeasureUnitQualifier
annotation
documentation 
CNT - Element to specify totals of the consolidation (eg. total number of equipment, total numver of consignements, total gross weight and/or dimensions of the whole consolidation, etc)
source
<xs:element name="ControlTotal">
  <xs:annotation>
    <xs:documentation>CNT - Element to specify totals of the consolidation (eg. total number of equipment, total numver of consignements, total gross weight and/or dimensions of the whole consolidation, etc)</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ControlQualifier">
        <xs:annotation>
          <xs:documentation>Determines the source data elements which form the basis for the 6066 control value</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="10">
              <xs:annotation>
                <xs:documentation>Total number of consignements</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ControlValue" type="decimal18">
        <xs:annotation>
          <xs:documentation>Value obtained from summing the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MeasureUnitQualifier" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Indication of the unit of measurement in which a quantity is expressed</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ControlTotal/ControlQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 10
annotation
documentation 
Determines the source data elements which form the basis for the 6066 control value
source
<xs:element name="ControlQualifier">
  <xs:annotation>
    <xs:documentation>Determines the source data elements which form the basis for the 6066 control value</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation>Total number of consignements</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ControlTotal/ControlValue
diagram
type decimal18
properties
isRef 0
content simple
facets
totalDigits 18
annotation
documentation 
Value obtained from summing the values specified by the control qualifier throughout the message (hash total)
source
<xs:element name="ControlValue" type="decimal18">
  <xs:annotation>
    <xs:documentation>Value obtained from summing the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ControlTotal/MeasureUnitQualifier
diagram
properties
isRef 0
annotation
documentation 
Indication of the unit of measurement in which a quantity is expressed
source
<xs:element name="MeasureUnitQualifier" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Indication of the unit of measurement in which a quantity is expressed</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/Reference
diagram
properties
isRef 0
content complex
children ReferenceQualifier ReferenceNumber ReferenceDateTimePeriod
annotation
documentation 
RFF - Group of elements containing  references and constants that apply to the entire message
source
<xs:element name="Reference" maxOccurs="4">
  <xs:annotation>
    <xs:documentation>RFF - Group of elements containing  references and constants that apply to the entire message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ReferenceQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="ABO">
              <xs:annotation>
                <xs:documentation>Originator's reference</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ACW">
              <xs:annotation>
                <xs:documentation>Reference number to a previous message</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFB">
              <xs:annotation>
                <xs:documentation>Cargo manifest number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFM">
              <xs:annotation>
                <xs:documentation>Secondary customs reference</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ATZ">
              <xs:annotation>
                <xs:documentation>Ship's stay reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VON">
              <xs:annotation>
                <xs:documentation>Voyage number. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ReferenceNumber">
        <xs:annotation>
          <xs:documentation>Identification number.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="ReferenceDateTimePeriod" minOccurs="0" maxOccurs="2"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/Reference/ReferenceQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration ABO
enumeration ACW
enumeration AFB
enumeration AFM
enumeration ATZ
enumeration VON
annotation
documentation 
Code giving specific meaning to a reference element or a reference number
source
<xs:element name="ReferenceQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="ABO">
        <xs:annotation>
          <xs:documentation>Originator's reference</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACW">
        <xs:annotation>
          <xs:documentation>Reference number to a previous message</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFB">
        <xs:annotation>
          <xs:documentation>Cargo manifest number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFM">
        <xs:annotation>
          <xs:documentation>Secondary customs reference</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ATZ">
        <xs:annotation>
          <xs:documentation>Ship's stay reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="VON">
        <xs:annotation>
          <xs:documentation>Voyage number. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/Reference/ReferenceNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Identification number.
source
<xs:element name="ReferenceNumber">
  <xs:annotation>
    <xs:documentation>Identification number.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/GovernmentalRequirements
diagram
properties
isRef 0
content complex
children TransportMovement GovernmentAgency
annotation
documentation 
GOR - An element to give information about the current customs procedure under which the transport is moving or to indicate applicable governmental procedures to import, export and transit of the voyage, flight or consolidation
source
<xs:element name="GovernmentalRequirements" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>GOR - An element to give information about the current customs procedure under which the transport is moving or to indicate applicable governmental procedures to import, export and transit of the voyage, flight or consolidation</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TransportMovement">
        <xs:annotation>
          <xs:documentation>Code indicating the type of movement of the goods</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Export</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Import</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Transit</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS0">
              <xs:annotation>
                <xs:documentation>Simplified Transit Procedure not admitted</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS1">
              <xs:annotation>
                <xs:documentation>Simplified Transit Procedure Level 1 article 447, EC regulation no. 2454/93 of the Commission</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS2">
              <xs:annotation>
                <xs:documentation>Simplified Transit Procedure Level 2 article 448, EC regulation no. 2454/93 of the Comission</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="GovernmentAgency">
        <xs:annotation>
          <xs:documentation>Indicates which government agency is involved</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/GovernmentalRequirements/TransportMovement
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 1
enumeration 2
enumeration 3
enumeration ZS0
enumeration ZS1
enumeration ZS2
annotation
documentation 
Code indicating the type of movement of the goods
source
<xs:element name="TransportMovement">
  <xs:annotation>
    <xs:documentation>Code indicating the type of movement of the goods</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Export</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Import</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Transit</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS0">
        <xs:annotation>
          <xs:documentation>Simplified Transit Procedure not admitted</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS1">
        <xs:annotation>
          <xs:documentation>Simplified Transit Procedure Level 1 article 447, EC regulation no. 2454/93 of the Commission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS2">
        <xs:annotation>
          <xs:documentation>Simplified Transit Procedure Level 2 article 448, EC regulation no. 2454/93 of the Comission</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/GovernmentalRequirements/GovernmentAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
annotation
documentation 
Indicates which government agency is involved
source
<xs:element name="GovernmentAgency">
  <xs:annotation>
    <xs:documentation>Indicates which government agency is involved</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress
diagram
properties
isRef 0
content complex
children PartyQualifier PartyId CodeListQualifier CodeListResponsibleAgency NameAndAddress Country ContactInformation
annotation
documentation 
NAD - An element to identify the party's name and contacts
source
<xs:element name="NameAndAddress" maxOccurs="5">
  <xs:annotation>
    <xs:documentation>NAD - An element to identify the party's name and contacts</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PartyQualifier">
        <xs:annotation>
          <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AE">
              <xs:annotation>
                <xs:documentation>Declarant's agent/representative</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CG">
              <xs:annotation>
                <xs:documentation>Carrier's agent</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CM">
              <xs:annotation>
                <xs:documentation>Customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CV">
              <xs:annotation>
                <xs:documentation>Consignee of vessel. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MR">
              <xs:annotation>
                <xs:documentation>Message recipient</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MS">
              <xs:annotation>
                <xs:documentation>Document/message issuer/sender</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PartyId">
        <xs:annotation>
          <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="113">
              <xs:annotation>
                <xs:documentation>Customs office</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="167">
              <xs:annotation>
                <xs:documentation>Tax party identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency resopnsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="9">
              <xs:annotation>
                <xs:documentation>EAN (International Article Numbering association)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="155">
              <xs:annotation>
                <xs:documentation>PT, Portuguese Customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NameAndAddress" type="string1..35" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Unstructured name and address. This entity is required for parners who use the Data Entry application</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Country" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ContactInformation" minOccurs="0">
        <xs:annotation>
          <xs:documentation>CTA - A group of elements to identify a party's contacts</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ContactFunction">
              <xs:annotation>
                <xs:documentation>Function of the contact (department of person)</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="BF">
                    <xs:annotation>
                      <xs:documentation>Service contact</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="IC">
                    <xs:annotation>
                      <xs:documentation>Information contact</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DepartmentEmployeeIdentification" type="string1..17" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Internal identification code. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="DepartmentEmployee" type="string1..35">
              <xs:annotation>
                <xs:documentation>The department of person within an organizational unit</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="CommunicationContact" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>COM - Element to hold the communication number of a person or department to whom the it should be addressed</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="CommunicationNumber">
                    <xs:annotation>
                      <xs:documentation>The communication number</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..512"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CommunicationChannelQualifier">
                    <xs:annotation>
                      <xs:documentation>Identifier of the communications' channel type</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/NameAndAddress/PartyQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AE
enumeration CG
enumeration CM
enumeration CV
enumeration MR
enumeration MS
annotation
documentation 
Code giving a specific meaning to a party
source
<xs:element name="PartyQualifier">
  <xs:annotation>
    <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AE">
        <xs:annotation>
          <xs:documentation>Declarant's agent/representative</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CG">
        <xs:annotation>
          <xs:documentation>Carrier's agent</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CM">
        <xs:annotation>
          <xs:documentation>Customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CV">
        <xs:annotation>
          <xs:documentation>Consignee of vessel. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MR">
        <xs:annotation>
          <xs:documentation>Message recipient</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS">
        <xs:annotation>
          <xs:documentation>Document/message issuer/sender</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/PartyId
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Code identifying a party involved in a transaction
source
<xs:element name="PartyId">
  <xs:annotation>
    <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 113
enumeration 167
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="113">
        <xs:annotation>
          <xs:documentation>Customs office</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="167">
        <xs:annotation>
          <xs:documentation>Tax party identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 9
enumeration 155
annotation
documentation 
Code identifying the agency resopnsible for a code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency resopnsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:documentation>EAN (International Article Numbering association)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="155">
        <xs:annotation>
          <xs:documentation>PT, Portuguese Customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/NameAndAddress
diagram
type string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Unstructured name and address. This entity is required for parners who use the Data Entry application
source
<xs:element name="NameAndAddress" type="string1..35" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Unstructured name and address. This entity is required for parners who use the Data Entry application</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/NameAndAddress/Country
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Contry's name as specified in ISO 3166
source
<xs:element name="Country" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation
diagram
properties
isRef 0
content complex
children ContactFunction DepartmentEmployeeIdentification DepartmentEmployee CommunicationContact
annotation
documentation 
CTA - A group of elements to identify a party's contacts
source
<xs:element name="ContactInformation" minOccurs="0">
  <xs:annotation>
    <xs:documentation>CTA - A group of elements to identify a party's contacts</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ContactFunction">
        <xs:annotation>
          <xs:documentation>Function of the contact (department of person)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="BF">
              <xs:annotation>
                <xs:documentation>Service contact</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="IC">
              <xs:annotation>
                <xs:documentation>Information contact</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DepartmentEmployeeIdentification" type="string1..17" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Internal identification code. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DepartmentEmployee" type="string1..35">
        <xs:annotation>
          <xs:documentation>The department of person within an organizational unit</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CommunicationContact" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>COM - Element to hold the communication number of a person or department to whom the it should be addressed</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CommunicationNumber">
              <xs:annotation>
                <xs:documentation>The communication number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..512"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CommunicationChannelQualifier">
              <xs:annotation>
                <xs:documentation>Identifier of the communications' channel type</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/ContactFunction
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration BF
enumeration IC
annotation
documentation 
Function of the contact (department of person)
source
<xs:element name="ContactFunction">
  <xs:annotation>
    <xs:documentation>Function of the contact (department of person)</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="BF">
        <xs:annotation>
          <xs:documentation>Service contact</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IC">
        <xs:annotation>
          <xs:documentation>Information contact</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/DepartmentEmployeeIdentification
diagram
type string1..17
properties
isRef 0
content simple
facets
minLength 1
maxLength 17
annotation
documentation 
Internal identification code. Only provided for backward compatibility
source
<xs:element name="DepartmentEmployeeIdentification" type="string1..17" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Internal identification code. Only provided for backward compatibility</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/DepartmentEmployee
diagram
type string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The department of person within an organizational unit
source
<xs:element name="DepartmentEmployee" type="string1..35">
  <xs:annotation>
    <xs:documentation>The department of person within an organizational unit</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/CommunicationContact
diagram
properties
isRef 0
content complex
children CommunicationNumber CommunicationChannelQualifier
annotation
documentation 
COM - Element to hold the communication number of a person or department to whom the it should be addressed
source
<xs:element name="CommunicationContact" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>COM - Element to hold the communication number of a person or department to whom the it should be addressed</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="CommunicationNumber">
        <xs:annotation>
          <xs:documentation>The communication number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..512"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CommunicationChannelQualifier">
        <xs:annotation>
          <xs:documentation>Identifier of the communications' channel type</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/CommunicationContact/CommunicationNumber
diagram
type restriction of string1..512
properties
isRef 0
content simple
facets
minLength 1
maxLength 512
annotation
documentation 
The communication number
source
<xs:element name="CommunicationNumber">
  <xs:annotation>
    <xs:documentation>The communication number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..512"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/NameAndAddress/ContactInformation/CommunicationContact/CommunicationChannelQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Identifier of the communications' channel type
source
<xs:element name="CommunicationChannelQualifier">
  <xs:annotation>
    <xs:documentation>Identifier of the communications' channel type</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails
diagram
properties
isRef 0
content complex
children TransportStageQualifier ConveyanceReferenceNumber ModeOfTransport MeansOfTransportIMONumber CodeListQualifier CodeListResponsibleAgency IdOfTheMeansOfTransport NationalityOfMeansOfTransport LocationIdentification DateTimePeriod
annotation
documentation 
TDT - Group of elements to describe all transport details of the voyage/flight or consolidation, and of all parties involved.  This element is provided for backward compatibility only. the elements within will be ignored
source
<xs:element name="TransportDetails" minOccurs="0">
  <xs:annotation>
    <xs:documentation>TDT - Group of elements to describe all transport details of the voyage/flight or consolidation, and of all parties involved.  This element is provided for backward compatibility only. the elements within will be ignored</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TransportStageQualifier">
        <xs:annotation>
          <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="20">
              <xs:annotation>
                <xs:documentation>Main-carriage transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ConveyanceReferenceNumber">
        <xs:annotation>
          <xs:documentation>Unique reference given by the carrier to a certain journey or departure of a means of transport</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..17"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ModeOfTransport">
        <xs:annotation>
          <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeansOfTransportIMONumber">
        <xs:annotation>
          <xs:documentation>Identification of the means of transport. IMO number.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="146">
              <xs:annotation>
                <xs:documentation>Means of transport identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="54">
              <xs:annotation>
                <xs:documentation>IMO (International Maritime Organisation)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="IdOfTheMeansOfTransport" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Vessel's name</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NationalityOfMeansOfTransport" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Coded name of the country where the means of transportation is registered. ISO3166 country codes</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="LocationIdentification" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>LOC - A segment indicating relevant locations related to the transport of the consolidation </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PlaceLocationQualifier">
              <xs:annotation>
                <xs:documentation>Code identifying the function of a location</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="61">
                    <xs:annotation>
                      <xs:documentation>Next port of call</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="92">
                    <xs:annotation>
                      <xs:documentation>Routing</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocationIdentification">
              <xs:annotation>
                <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..25"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="139">
                    <xs:annotation>
                      <xs:documentation>Port</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>UN/ECE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocation" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..70">
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>DTD - Element to indicate the date/time of a reference</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DateTimePeriodQualifier">
              <xs:annotation>
                <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="132">
                    <xs:annotation>
                      <xs:documentation>Arrival date/time, estimated</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="133">
                    <xs:annotation>
                      <xs:documentation>Departure date/time, estimated</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriod" type="string1..35">
              <xs:annotation>
                <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="DateTimePeriodFormatQualifier">
              <xs:annotation>
                <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="203">
                    <xs:annotation>
                      <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="303">
                    <xs:annotation>
                      <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/TransportDetails/TransportStageQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 20
annotation
documentation 
Qualifier giving a specific meaning to the transport details
source
<xs:element name="TransportStageQualifier">
  <xs:annotation>
    <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="20">
        <xs:annotation>
          <xs:documentation>Main-carriage transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/ConveyanceReferenceNumber
diagram
type restriction of string1..17
properties
isRef 0
content simple
facets
minLength 1
maxLength 17
annotation
documentation 
Unique reference given by the carrier to a certain journey or departure of a means of transport
source
<xs:element name="ConveyanceReferenceNumber">
  <xs:annotation>
    <xs:documentation>Unique reference given by the carrier to a certain journey or departure of a means of transport</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..17"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/ModeOfTransport
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 1
annotation
documentation 
Coded method of transport used for the carriage of the goods
source
<xs:element name="ModeOfTransport">
  <xs:annotation>
    <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/MeansOfTransportIMONumber
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Identification of the means of transport. IMO number.
source
<xs:element name="MeansOfTransportIMONumber">
  <xs:annotation>
    <xs:documentation>Identification of the means of transport. IMO number.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 146
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="146">
        <xs:annotation>
          <xs:documentation>Means of transport identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 54
annotation
documentation 
Code identifying the agency responsible for the code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="54">
        <xs:annotation>
          <xs:documentation>IMO (International Maritime Organisation)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/IdOfTheMeansOfTransport
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Vessel's name
source
<xs:element name="IdOfTheMeansOfTransport" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Vessel's name</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35">
      <xs:maxLength value="35"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/NationalityOfMeansOfTransport
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Coded name of the country where the means of transportation is registered. ISO3166 country codes
source
<xs:element name="NationalityOfMeansOfTransport" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Coded name of the country where the means of transportation is registered. ISO3166 country codes</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification
diagram
properties
isRef 0
content complex
children PlaceLocationQualifier PlaceLocationIdentification CodeListQualifier CodeListResponsibleAgency PlaceLocation
annotation
documentation 
LOC - A segment indicating relevant locations related to the transport of the consolidation 
source
<xs:element name="LocationIdentification" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>LOC - A segment indicating relevant locations related to the transport of the consolidation </xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PlaceLocationQualifier">
        <xs:annotation>
          <xs:documentation>Code identifying the function of a location</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="61">
              <xs:annotation>
                <xs:documentation>Next port of call</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="92">
              <xs:annotation>
                <xs:documentation>Routing</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocationIdentification">
        <xs:annotation>
          <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..25"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="139">
              <xs:annotation>
                <xs:documentation>Port</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>UN/ECE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocation" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..70">
            <xs:maxLength value="70"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification/PlaceLocationQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 61
enumeration 92
annotation
documentation 
Code identifying the function of a location
source
<xs:element name="PlaceLocationQualifier">
  <xs:annotation>
    <xs:documentation>Code identifying the function of a location</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="61">
        <xs:annotation>
          <xs:documentation>Next port of call</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="92">
        <xs:annotation>
          <xs:documentation>Routing</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification/PlaceLocationIdentification
diagram
type restriction of string1..25
properties
isRef 0
content simple
facets
minLength 1
maxLength 25
annotation
documentation 
Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2
source
<xs:element name="PlaceLocationIdentification">
  <xs:annotation>
    <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..25"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 139
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="139">
        <xs:annotation>
          <xs:documentation>Port</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 6
annotation
documentation 
Code identifying the agency responsible for a code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>UN/ECE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/LocationIdentification/PlaceLocation
diagram
type restriction of string1..70
properties
isRef 0
content simple
facets
minLength 1
maxLength 70
annotation
documentation 
Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited
source
<xs:element name="PlaceLocation" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..70">
      <xs:maxLength value="70"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/DateTimePeriod
diagram
properties
isRef 0
content complex
children DateTimePeriodQualifier DateTimePeriod DateTimePeriodFormatQualifier
annotation
documentation 
DTD - Element to indicate the date/time of a reference
source
<xs:element name="DateTimePeriod" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>DTD - Element to indicate the date/time of a reference</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DateTimePeriodQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="132">
              <xs:annotation>
                <xs:documentation>Arrival date/time, estimated</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="133">
              <xs:annotation>
                <xs:documentation>Departure date/time, estimated</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod" type="string1..35">
        <xs:annotation>
          <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateTimePeriodFormatQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="203">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="303">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriodQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 132
enumeration 133
annotation
documentation 
Code giving specific meaning to a date, time or period
source
<xs:element name="DateTimePeriodQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="132">
        <xs:annotation>
          <xs:documentation>Arrival date/time, estimated</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="133">
        <xs:annotation>
          <xs:documentation>Departure date/time, estimated</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriod
diagram
type string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The value of a date, a date and a tiem, a time or a period, in a specified representation
source
<xs:element name="DateTimePeriod" type="string1..35">
  <xs:annotation>
    <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriodFormatQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 203
enumeration 303
annotation
documentation 
Specification of the representation of a date, date and time or a period
source
<xs:element name="DateTimePeriodFormatQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="203">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="303">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation
diagram
properties
isRef 0
content complex
children ConsolidationItemNumber DocumentMessageNumber DocumentMessageStatus ControlTotal ConsignmentFreeText LocationIdentification Reference DetailsOfTransport NameAndAddress GoodsItemDetails EquipmentDetails
annotation
documentation 
CNI - Element to indicate consignments included in the consolidation using the transport document/message number
source
<xs:element name="ConsignmentInformation" minOccurs="0" maxOccurs="9999">
  <xs:annotation>
    <xs:documentation>CNI - Element to indicate consignments included in the consolidation using the transport document/message number</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ConsolidationItemNumber">
        <xs:annotation>
          <xs:documentation>Serial number differentiating each separate consignment included in the consolidation</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="decimal4"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DocumentMessageNumber" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Reference number assigned to the document/message by the issuer. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DocumentMessageStatus" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code to identify the status of a document/message</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="ZZ1">
              <xs:annotation>
                <xs:documentation>(Provided for backwards compatibility. Will be treated like a goods consignment except empty container bill)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ2">
              <xs:annotation>
                <xs:documentation>(Provided for backwards compatibility. Will be treated like travel service)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ3">
              <xs:annotation>
                <xs:documentation>(Provided for backwards compatibility. Will be treated like empty container bill)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ControlTotal" maxOccurs="6">
        <xs:annotation>
          <xs:documentation>CNT - An element to specify totals for a consignment</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ControlQualifier">
              <xs:annotation>
                <xs:documentation>Determines the source data elements in the message which forms the basis for ControlValue attribute</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="7">
                    <xs:annotation>
                      <xs:documentation>Total gross weight</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="11">
                    <xs:annotation>
                      <xs:documentation>Total number of packages</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="16">
                    <xs:annotation>
                      <xs:documentation>Total number of equipment</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="26">
                    <xs:annotation>
                      <xs:documentation>Total gross measurement/cube</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="30">
                    <xs:annotation>
                      <xs:documentation>Total number of empty containers</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ControlValue" type="decimal18">
              <xs:annotation>
                <xs:documentation>Value obtained from smming the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="MeasureUnitQualifier" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Indication of the unit of measurement in which the quantity is expressed</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="KGM">
                    <xs:annotation>
                      <xs:documentation>Kilogram</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MTQ">
                    <xs:annotation>
                      <xs:documentation>Cubic meter</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="ConsignmentFreeText" minOccurs="0" maxOccurs="4">
        <xs:annotation>
          <xs:documentation>FTX - An element to give free form information</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TextSubjectQualifier">
              <xs:annotation>
                <xs:documentation>Code specifying the subject of the free text</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAI">
                    <xs:annotation>
                      <xs:documentation>General information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAS">
                    <xs:annotation>
                      <xs:documentation>Bill of lading remarks. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BLR">
                    <xs:annotation>
                      <xs:documentation>Transport document remarks</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CHG">
                    <xs:annotation>
                      <xs:documentation>Change information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CUS">
                    <xs:annotation>
                      <xs:documentation>Customs declaration information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="FreeTextNode"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="LocationIdentification" maxOccurs="5">
        <xs:annotation>
          <xs:documentation>LOC - A segment to identify a location applying to the entire consignment.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PlaceLocationQualifier">
              <xs:annotation>
                <xs:documentation>Code identifying the function of a location</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Place of departure</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="7">
                    <xs:annotation>
                      <xs:documentation>Place of delivery</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="8">
                    <xs:annotation>
                      <xs:documentation>Place of destination. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="9">
                    <xs:annotation>
                      <xs:documentation>Place/port of loading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="11">
                    <xs:annotation>
                      <xs:documentation>Place/port of discharge</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="88">
                    <xs:annotation>
                      <xs:documentation>Place of receipt</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="91">
                    <xs:annotation>
                      <xs:documentation>Place of document issue</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocationIdentification">
              <xs:annotation>
                <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..25"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="139">
                    <xs:annotation>
                      <xs:documentation>Port</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="162">
                    <xs:annotation>
                      <xs:documentation>Country</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>ISO</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>UN/ECE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocation" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..70">
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Reference" maxOccurs="999">
        <xs:annotation>
          <xs:documentation>RFF - A group of elements containing a reference and constants which apply to the entire consignment</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceQualifier">
              <xs:annotation>
                <xs:documentation>Code giving a specific meaning to a reference element or a reference number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAE">
                    <xs:annotation>
                      <xs:documentation>Goods declaration number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAM">
                    <xs:annotation>
                      <xs:documentation>Waybill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAO">
                    <xs:annotation>
                      <xs:documentation>Consignee's shipment number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAS">
                    <xs:annotation>
                      <xs:documentation>Transport document number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABE">
                    <xs:annotation>
                      <xs:documentation>Declarant's reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABH">
                    <xs:annotation>
                      <xs:documentation>Sub-house bill of landing number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABT">
                    <xs:annotation>
                      <xs:documentation>Customs declaration number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ACW">
                    <xs:annotation>
                      <xs:documentation>Reference number to a previous message</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ADO">
                    <xs:annotation>
                      <xs:documentation>Container work order reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEI">
                    <xs:annotation>
                      <xs:documentation>Registration number of previous customs declaration</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEV">
                    <xs:annotation>
                      <xs:documentation>Shipping note number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEW">
                    <xs:annotation>
                      <xs:documentation>Empty container bill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEX">
                    <xs:annotation>
                      <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFA">
                    <xs:annotation>
                      <xs:documentation>Through bill of landing number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFM">
                    <xs:annotation>
                      <xs:documentation>Secondary Customs reference</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AHI">
                    <xs:annotation>
                      <xs:documentation>Transport contract reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AKR">
                    <xs:annotation>
                      <xs:documentation>General cargo consignment reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ANK">
                    <xs:annotation>
                      <xs:documentation>Reference number assigned by a third party</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AUE">
                    <xs:annotation>
                      <xs:documentation>Travel service</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AUG">
                    <xs:annotation>
                      <xs:documentation>Importer's letter of credit reference</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BM">
                    <xs:annotation>
                      <xs:documentation>Bill of landing number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BN">
                    <xs:annotation>
                      <xs:documentation>Booking reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CN">
                    <xs:annotation>
                      <xs:documentation>Carrier's reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CR">
                    <xs:annotation>
                      <xs:documentation>Customer reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CU">
                    <xs:annotation>
                      <xs:documentation>Consignor's reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="DQ">
                    <xs:annotation>
                      <xs:documentation>Delivery note number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MB">
                    <xs:annotation>
                      <xs:documentation>Master bill of landing number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="PK">
                    <xs:annotation>
                      <xs:documentation>Packing list number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="UCN">
                    <xs:annotation>
                      <xs:documentation>Unique consignment reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ReferenceNumber">
              <xs:annotation>
                <xs:documentation>Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="ReferenceDateTimePeriod"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DetailsOfTransport" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>TDT - An element to indicate information related to a certain stage ot the transport, such as mode, means and carrier</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TransportStageQualifier">
              <xs:annotation>
                <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="10">
                    <xs:annotation>
                      <xs:documentation>Pre-carriage transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="30">
                    <xs:annotation>
                      <xs:documentation>On-carriage transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ModeOfTransport">
              <xs:annotation>
                <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="0">
                    <xs:annotation>
                      <xs:documentation>Transport mode not specified</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="1">
                    <xs:annotation>
                      <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Rail</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Road</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Air transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Mail</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="7">
                    <xs:annotation>
                      <xs:documentation>Fixed transport isntallation</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="8">
                    <xs:annotation>
                      <xs:documentation>Inland water transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ1">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ2">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ3">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ5">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZZ6">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NameAndAddress" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>NAD - An element to identify the party's name, address and function</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PartyQualifier">
              <xs:annotation>
                <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AG">
                    <xs:annotation>
                      <xs:documentation>Agent/representative</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CA">
                    <xs:annotation>
                      <xs:documentation>Carrier</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CM">
                    <xs:annotation>
                      <xs:documentation>Customs</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CN">
                    <xs:annotation>
                      <xs:documentation>Consignee</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CZ">
                    <xs:annotation>
                      <xs:documentation>Consignor</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="N1">
                    <xs:annotation>
                      <xs:documentation>Notify party no.1</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="N2">
                    <xs:annotation>
                      <xs:documentation>Notify party no.2</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="NI">
                    <xs:annotation>
                      <xs:documentation>Notify party</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="OS">
                    <xs:annotation>
                      <xs:documentation>Original shipper</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:choice>
              <xs:element name="PartyIdentificationDetails" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Identification of a transaction party involved. Required when the paty is Portuguese</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PartyId">
                      <xs:annotation>
                        <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..35"/>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="CodeListQualifier">
                      <xs:annotation>
                        <xs:documentation>Identification of a code list</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..3">
                          <xs:enumeration value="113">
                            <xs:annotation>
                              <xs:documentation>Customs office</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                          <xs:enumeration value="167">
                            <xs:annotation>
                              <xs:documentation>Tax party identification</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="CodeListResponsibleAgency">
                      <xs:annotation>
                        <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..3">
                          <xs:enumeration value="155">
                            <xs:annotation>
                              <xs:documentation>PT, Portuguese customs</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="FreeNameAndAddress" type="string1..350">
                <xs:annotation>
                  <xs:documentation>Unstructured name and address. One to five lines. Required when the party is not Portuguese</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
            <xs:element name="CityName">
              <xs:annotation>
                <xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9">
                  <xs:maxLength value="9"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CountrySubentityIdentification" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9">
                  <xs:maxLength value="9"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PostcodeIdentification" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9">
                  <xs:maxLength value="9"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Country">
              <xs:annotation>
                <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GoodsItemDetails" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation>GID - A group of elements to describe the goods items for chich transport is undertaken. Agoods item can ben identified by up to three levels of packaging</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="GoodsItemNumber">
              <xs:annotation>
                <xs:documentation>Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="decimal5"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NumberOfPackages">
              <xs:annotation>
                <xs:documentation>Number of undivisible parts of a shipment (without undoing the packing)</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="decimal8">
                  <xs:totalDigits value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="TypeOfPackagesIdentification">
              <xs:annotation>
                <xs:documentation>Coded description of the form in which the goods are presented</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..17"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="67">
                    <xs:annotation>
                      <xs:documentation>Type of package</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>UN/ECE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="TypeOfPackages" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Description of the form in which goods are presented. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="LocationIdentification" minOccurs="0" maxOccurs="2">
              <xs:annotation>
                <xs:documentation>LOC - An element to specify a country associated with a goods item, such as a country of origin or destination</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PlaceLocationQualifier">
                    <xs:annotation>
                      <xs:documentation>Code identifying the function of a location</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="76">
                          <xs:annotation>
                            <xs:documentation>Original port of loading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="164">
                          <xs:annotation>
                            <xs:documentation>Berth</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocationIdentification">
                    <xs:annotation>
                      <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..25"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListQualifier">
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="139">
                          <xs:annotation>
                            <xs:documentation>Port</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="6">
                          <xs:annotation>
                            <xs:documentation>UN/ECE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PlaceLocation" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Name of the place/location, other than 3164 city name</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..70"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Specification of the first related place/location by code</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..25"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="MonetaryAmount" minOccurs="0">
              <xs:annotation>
                <xs:documentation>MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MonetaryAmountTypeQualifier">
                    <xs:annotation>
                      <xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="39">
                          <xs:annotation>
                            <xs:documentation>Invoice total amount</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MonetaryAmountQTY" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Number of monetary units</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..18"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CurrencyCoded" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="EUR">
                          <xs:annotation>
                            <xs:documentation>EURO</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="AdditionalProductID" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>PIA - A group to specify article numbers</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ProductId">
                    <xs:annotation>
                      <xs:documentation>Indication of the function of the product code</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>Product Identification</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ItemNumber">
                    <xs:annotation>
                      <xs:documentation>A number allocated to a group or item</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ItemNumberType">
                    <xs:annotation>
                      <xs:documentation>Identification of the type of item number</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="HS">
                          <xs:annotation>
                            <xs:documentation>Harmonised system</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="FreeText" maxOccurs="5">
              <xs:annotation>
                <xs:documentation>FTX - An element to give information and/or processable instructions in adition to those in other elements</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TextSubjectQualifier">
                    <xs:annotation>
                      <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:maxLength value="3"/>
                        <xs:enumeration value="AAA">
                          <xs:annotation>
                            <xs:documentation>Goods description</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAI">
                          <xs:annotation>
                            <xs:documentation>General information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CUS">
                          <xs:annotation>
                            <xs:documentation>Customs declaration information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="TRA">
                          <xs:annotation>
                            <xs:documentation>Transportation information
General information regarding the transport of the cargo.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element ref="FreeTextNode"/>
                  <xs:element name="LanguageCoded" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code of language (ISO 639-1988).</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType name="Code">
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="EN">
                          <xs:annotation>
                            <xs:documentation>English</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="PT">
                          <xs:annotation>
                            <xs:documentation>Portuguese</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="NameAndAddress" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>NAD - An element to specify an address of a place of collection or delivery for a goods item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="PartyQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="CA">
                          <xs:annotation>
                            <xs:documentation>Carrier</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CN">
                          <xs:annotation>
                            <xs:documentation>Consignee</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CZ">
                          <xs:annotation>
                            <xs:documentation>Consignor</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="EX">
                          <xs:annotation>
                            <xs:documentation>Exporter</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="IM">
                          <xs:annotation>
                            <xs:documentation>Importer</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MS">
                          <xs:annotation>
                            <xs:documentation>Document/message issuer/sender</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="N1">
                          <xs:annotation>
                            <xs:documentation>Notify party no.1</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="N2">
                          <xs:annotation>
                            <xs:documentation>Notify party no.2</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="NI">
                          <xs:annotation>
                            <xs:documentation>Notify party</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="OS">
                          <xs:annotation>
                            <xs:documentation>Original shipper</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="TR">
                          <xs:annotation>
                            <xs:documentation>Terminal operator</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="WD">
                          <xs:annotation>
                            <xs:documentation>Warehouse depositor</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="WH">
                          <xs:annotation>
                            <xs:documentation>Warehouse keeper</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZOP">
                          <xs:annotation>
                            <xs:documentation>Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:choice>
                    <xs:element name="PartyIdentificationDetails" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="PartyId">
                            <xs:annotation>
                              <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..35"/>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="CodeListQualifier">
                            <xs:annotation>
                              <xs:documentation>Identification of a code list</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..3">
                                <xs:enumeration value="167">
                                  <xs:annotation>
                                    <xs:documentation>Tax party identification</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                                <xs:enumeration value="Z01">
                                  <xs:annotation>
                                    <xs:documentation>Authorized entity identification</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="CodeListResponsibleAgency">
                            <xs:annotation>
                              <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="string1..3">
                                <xs:enumeration value="155">
                                  <xs:annotation>
                                    <xs:documentation>PT, Portuguese customs</xs:documentation>
                                  </xs:annotation>
                                </xs:enumeration>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="FreeNameAndAddress" type="string1..512">
                      <xs:annotation>
                        <xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:choice>
                  <xs:element name="CountrySubentityIdentification" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..9">
                        <xs:maxLength value="9"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PostcodeIdentification" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..9">
                        <xs:maxLength value="9"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Country">
                    <xs:annotation>
                      <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:maxLength value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="NatureOfCargo" maxOccurs="2">
              <xs:annotation>
                <xs:documentation>GDS - An element to describe the nature of the cargo</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="NatureOfCargo">
                    <xs:annotation>
                      <xs:documentation>Code indicating the type of cargo as a rough classification</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="CodeListResponsibleAgency" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="2">
                          <xs:annotation>
                            <xs:documentation>CEC</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Measurements" minOccurs="0" maxOccurs="2">
              <xs:annotation>
                <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MeasurementPurposeQualifier">
                    <xs:annotation>
                      <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAE">
                          <xs:annotation>
                            <xs:documentation>Measurement</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAI">
                          <xs:annotation>
                            <xs:documentation>Item weight. Only provided for backward compatibility</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="WT">
                          <xs:annotation>
                            <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PropertyMeasured">
                    <xs:annotation>
                      <xs:documentation>Specification of the property measured</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAD">
                          <xs:annotation>
                            <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABJ">
                          <xs:annotation>
                            <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="T"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasureUnitQualifier">
                    <xs:annotation>
                      <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="KGM">
                          <xs:annotation>
                            <xs:documentation>Kilogram</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MTQ">
                          <xs:annotation>
                            <xs:documentation>Cubic meter</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasurementValue">
                    <xs:annotation>
                      <xs:documentation>Value of the measured quantity</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..18"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Reference" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>RFF - An element to identify a reference to a goods item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ReferenceQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAB">
                          <xs:annotation>
                            <xs:documentation>Proforma invoice number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAM">
                          <xs:annotation>
                            <xs:documentation>Waybill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAP">
                          <xs:annotation>
                            <xs:documentation>Part consignment number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAS">
                          <xs:annotation>
                            <xs:documentation>Transport document number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABH">
                          <xs:annotation>
                            <xs:documentation>Sub-house bill of ladign number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABT">
                          <xs:annotation>
                            <xs:documentation>Customs declaration number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEE">
                          <xs:annotation>
                            <xs:documentation>Eur 1 certificate number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEW">
                          <xs:annotation>
                            <xs:documentation>Empty container bill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEX">
                          <xs:annotation>
                            <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AEZ">
                          <xs:annotation>
                            <xs:documentation>Despatch note (post parcels) number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AFA">
                          <xs:annotation>
                            <xs:documentation>Through bill of lading number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AFB">
                          <xs:annotation>
                            <xs:documentation>Cargo manifest number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AFM">
                          <xs:annotation>
                            <xs:documentation>Secondary Customs reference</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AHI">
                          <xs:annotation>
                            <xs:documentation>Transport contract reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AHT">
                          <xs:annotation>
                            <xs:documentation>Quarantine/treatment status reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AID">
                          <xs:annotation>
                            <xs:documentation>Certificate of conformity</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AIZ">
                          <xs:annotation>
                            <xs:documentation>Consolidated invoice number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AKA">
                          <xs:annotation>
                            <xs:documentation>Container disposition order reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AKR">
                          <xs:annotation>
                            <xs:documentation>General cargo consignment reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ALK">
                          <xs:annotation>
                            <xs:documentation>Consignee's invoice number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BH">
                          <xs:annotation>
                            <xs:documentation>House bill of lading number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BM">
                          <xs:annotation>
                            <xs:documentation>Bill of lading number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="BN">
                          <xs:annotation>
                            <xs:documentation>Booking reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CFO">
                          <xs:annotation>
                            <xs:documentation>Consignor's further order</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CG">
                          <xs:annotation>
                            <xs:documentation>Consignee's order number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CMR">
                          <xs:annotation>
                            <xs:documentation>Road consignment note number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="CU">
                          <xs:annotation>
                            <xs:documentation>Consignor's reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ED">
                          <xs:annotation>
                            <xs:documentation>Export declaration</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="EX">
                          <xs:annotation>
                            <xs:documentation>Export licence number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="FF">
                          <xs:annotation>
                            <xs:documentation>Freight forwarders reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="HWB">
                          <xs:annotation>
                            <xs:documentation>House waybill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="IP">
                          <xs:annotation>
                            <xs:documentation>Import licence number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="IV">
                          <xs:annotation>
                            <xs:documentation>Invoice number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MA">
                          <xs:annotation>
                            <xs:documentation>Ship notice/manifest number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MB">
                          <xs:annotation>
                            <xs:documentation>Master bill of lading number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="MWB">
                          <xs:annotation>
                            <xs:documentation>Master air waybill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="PK">
                          <xs:annotation>
                            <xs:documentation>Packing list number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="RCN">
                          <xs:annotation>
                            <xs:documentation>Railway consignment </xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="SRN">
                          <xs:annotation>
                            <xs:documentation>Shipment reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="TB">
                          <xs:annotation>
                            <xs:documentation>Truckers's bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="UCN">
                          <xs:annotation>
                            <xs:documentation>Unique consignment reference number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="WY">
                          <xs:annotation>
                            <xs:documentation>Rail waybill number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ReferenceNumber" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Identification number.</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element ref="ReferenceDateTimePeriod" maxOccurs="9"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="PackageIdentification" minOccurs="0" maxOccurs="999">
              <xs:annotation>
                <xs:documentation>PCI - An elemrent to specify marks and numbers of a goods item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MarkingInstructions" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code indicating instructions on how specified packages or physical units should be marked</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Shipping marks on packages in free text</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="ContainerPackageStatus" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="GovernmentalRequirements" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TransportMovement" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code indicating the movement of goods (import, export, transit)</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="ZC">
                          <xs:annotation>
                            <xs:documentation>Goods that their status can be proofed.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZF">
                          <xs:annotation>
                            <xs:documentation>Shiiping of community goods with destination/origin in a EC Customs territory where where Directive 77/388/CEE is not applied.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZN">
                          <xs:annotation>
                            <xs:documentation>Remaining goods</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZS0">
                          <xs:annotation>
                            <xs:documentation>No Simplified Procedures</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZS1">
                          <xs:annotation>
                            <xs:documentation>Simplified Procedures Level I</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZS2">
                          <xs:annotation>
                            <xs:documentation>Simplified Procedures Level II</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZT1">
                          <xs:annotation>
                            <xs:documentation>Goods subject to an external community transit regime.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZTD">
                          <xs:annotation>
                            <xs:documentation>Goods subject to a transit regime or transported in the scope of the active perfectionism, deposit or temporary import.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZTF">
                          <xs:annotation>
                            <xs:documentation>Goods subject to internal transit regime from, to or between non fiscal territories.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZW">
                          <xs:annotation>
                            <xs:documentation>T2F Customs status.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ZX">
                          <xs:annotation>
                            <xs:documentation>Community Goods to be exported not subject to a transit regime.</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="GovernmentAgency">
                    <xs:annotation>
                      <xs:documentation>Code to indicate the government agency involved</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="5">
                          <xs:annotation>
                            <xs:documentation>Customs</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="FreeText" minOccurs="0" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="TextSubjectQualifier">
                          <xs:annotation>
                            <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="CUS">
                                <xs:annotation>
                                  <xs:documentation>Customs declaration information</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element ref="FreeTextNode"/>
                        <xs:element name="LanguageCoded" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="PT">
                                <xs:annotation>
                                  <xs:documentation>General information</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
                    <xs:annotation>
                      <xs:documentation>DOC - An element to indicate a document required by the government</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="DocumentMessageName">
                          <xs:annotation>
                            <xs:documentation>Document/message identifier expressed in code</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="2">
                                <xs:annotation>
                                  <xs:documentation>Certificate of conformity</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="3">
                                <xs:annotation>
                                  <xs:documentation>Certificate of quality</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="18">
                                <xs:annotation>
                                  <xs:documentation>Movement certificate A.TR.1</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="271">
                                <xs:annotation>
                                  <xs:documentation>Packing list</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="380">
                                <xs:annotation>
                                  <xs:documentation>Commercial invoice</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="650">
                                <xs:annotation>
                                  <xs:documentation>Handling order</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="701">
                                <xs:annotation>
                                  <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="703">
                                <xs:annotation>
                                  <xs:documentation>House of waybill</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="704">
                                <xs:annotation>
                                  <xs:documentation>Master bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="705">
                                <xs:annotation>
                                  <xs:documentation>Bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="710">
                                <xs:annotation>
                                  <xs:documentation>Sea waybill</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="712">
                                <xs:annotation>
                                  <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="714">
                                <xs:annotation>
                                  <xs:documentation>House bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="716">
                                <xs:annotation>
                                  <xs:documentation>Forwarder's bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="720">
                                <xs:annotation>
                                  <xs:documentation>Rail consignment note (generic term)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="722">
                                <xs:annotation>
                                  <xs:documentation>Road list-SMGS</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="730">
                                <xs:annotation>
                                  <xs:documentation>Road consignment note</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="740">
                                <xs:annotation>
                                  <xs:documentation>Air waybill</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="741">
                                <xs:annotation>
                                  <xs:documentation>Master air waybill</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="746">
                                <xs:annotation>
                                  <xs:documentation>Delivery notice (rail transport)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="750">
                                <xs:annotation>
                                  <xs:documentation>Dispatch note (post parcels)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="760">
                                <xs:annotation>
                                  <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="761">
                                <xs:annotation>
                                  <xs:documentation>Through bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="763">
                                <xs:annotation>
                                  <xs:documentation>Forwarder's certificate of transport</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="764">
                                <xs:annotation>
                                  <xs:documentation>Combined transport document (generic)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="765">
                                <xs:annotation>
                                  <xs:documentation>Multimodal transport document (generic)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="766">
                                <xs:annotation>
                                  <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="785">
                                <xs:annotation>
                                  <xs:documentation>Cargo manifest</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="787">
                                <xs:annotation>
                                  <xs:documentation>Bordereau</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="796">
                                <xs:annotation>
                                  <xs:documentation>Derat document</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="797">
                                <xs:annotation>
                                  <xs:documentation>Maritime declaration of health</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="820">
                                <xs:annotation>
                                  <xs:documentation>Dispatch note model T</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="821">
                                <xs:annotation>
                                  <xs:documentation>Dispatch note model T1</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="822">
                                <xs:annotation>
                                  <xs:documentation>Dispatch note model T2</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="823">
                                <xs:annotation>
                                  <xs:documentation>Control document T5</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="825">
                                <xs:annotation>
                                  <xs:documentation>Dispatch note model T2L</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="830">
                                <xs:annotation>
                                  <xs:documentation>Goods declaration for exportation</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="851">
                                <xs:annotation>
                                  <xs:documentation>Phytosanitary certificate</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="852">
                                <xs:annotation>
                                  <xs:documentation>Sanitary certificate</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="853">
                                <xs:annotation>
                                  <xs:documentation>Sanitary certificate</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="861">
                                <xs:annotation>
                                  <xs:documentation>Certificate of origin</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="862">
                                <xs:annotation>
                                  <xs:documentation>Declaration of origin</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="864">
                                <xs:annotation>
                                  <xs:documentation>Preference certificate of origin</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="865">
                                <xs:annotation>
                                  <xs:documentation>Certificate of origin from GSP</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="933">
                                <xs:annotation>
                                  <xs:documentation>Cargo declaration (arrival)</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="941">
                                <xs:annotation>
                                  <xs:documentation>Embargo permit</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="951">
                                <xs:annotation>
                                  <xs:documentation>TIF form</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="952">
                                <xs:annotation>
                                  <xs:documentation>TIR carnet</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="954">
                                <xs:annotation>
                                  <xs:documentation>EUR 1 certificate of origin</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="955">
                                <xs:annotation>
                                  <xs:documentation>ATA carnet</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="960">
                                <xs:annotation>
                                  <xs:documentation>Single administrative document</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z01">
                                <xs:annotation>
                                  <xs:documentation>T2LF</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z02">
                                <xs:annotation>
                                  <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z03">
                                <xs:annotation>
                                  <xs:documentation>Customs status certificate</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z04">
                                <xs:annotation>
                                  <xs:documentation>DAA</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z05">
                                <xs:annotation>
                                  <xs:documentation>Administrative document</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z06">
                                <xs:annotation>
                                  <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="Z99">
                                <xs:annotation>
                                  <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="DocumentMessageNumber">
                          <xs:simpleType>
                            <xs:restriction base="string1..35"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="DateTimePeriod">
                          <xs:annotation>
                            <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="DateTimePeriodQualifier">
                                <xs:annotation>
                                  <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:enumeration value="182">
                                      <xs:annotation>
                                        <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="DateTimePeriod">
                                <xs:annotation>
                                  <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..35"/>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="DateTimePeriodFormatQualifier">
                                <xs:annotation>
                                  <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="string1..3">
                                    <xs:maxLength value="3"/>
                                    <xs:enumeration value="102">
                                      <xs:annotation>
                                        <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="602">
                                      <xs:annotation>
                                        <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
                                      </xs:annotation>
                                    </xs:enumeration>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="SplitGoodsPlacement" minOccurs="0" maxOccurs="999">
              <xs:annotation>
                <xs:documentation>SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="EquipmentIdentificationNumber">
                    <xs:annotation>
                      <xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..17"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element name="Measurements" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="MeasurementPurposeQualifier">
                          <xs:annotation>
                            <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="AAE">
                                <xs:annotation>
                                  <xs:documentation>Measurement</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="AAI">
                                <xs:annotation>
                                  <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="WT">
                                <xs:annotation>
                                  <xs:documentation>Weights</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="PropertyMeasured">
                          <xs:annotation>
                            <xs:documentation>Specification of the property measured</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="AAD">
                                <xs:annotation>
                                  <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="ABJ">
                                <xs:annotation>
                                  <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="T">
                                <xs:annotation>
                                  <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasureUnitQualifier">
                          <xs:annotation>
                            <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="KGM">
                                <xs:annotation>
                                  <xs:documentation>Kilogram</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="MeasurementValue">
                          <xs:annotation>
                            <xs:documentation>Value of the measured quantity</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..18"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="NumberOfUnits" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="NumberOfUnits" type="string0..17">
                                <xs:annotation>
                                  <xs:documentation>Number of units</xs:documentation>
                                </xs:annotation>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="EquipmentDetails" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation>EQD - An element to specify equipment, equipment size and type used in transport</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="EquipmentQualifier">
              <xs:annotation>
                <xs:documentation>Code identifying the type of equipment</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="EquipmentIdentificationNumber">
              <xs:annotation>
                <xs:documentation>Marks (letters or numbers) identifying the equipment used for transport</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..17"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="EquipmentSizeAndType">
              <xs:annotation>
                <xs:documentation>Code and/or name identifying size and type of the equipment used</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..10"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:annotation>
                <xs:documentation>Identification of a code list.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="102">
                    <xs:annotation>
                      <xs:documentation>Empty</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5"/>
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>Empty</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FullEmptyIndicator">
              <xs:annotation>
                <xs:documentation>To indicate the extent of the equipment being full or empty</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="4">
                    <xs:annotation>
                      <xs:documentation>Empty</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Full</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="7">
                    <xs:annotation>
                      <xs:documentation>Full, mixed consignment</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="8">
                    <xs:annotation>
                      <xs:documentation>Full, single consignment</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Measurements">
              <xs:annotation>
                <xs:documentation>MEA - An element to specify measurements, other than dimensions, associated with the equipment.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MeasurementPurposeQualifier">
                    <xs:annotation>
                      <xs:documentation>Specification of the purpose of the measurement</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="WT">
                          <xs:annotation>
                            <xs:documentation>Weights</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PropertyMeasured">
                    <xs:annotation>
                      <xs:documentation>Specification of the property being measured</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="T">
                          <xs:annotation>
                            <xs:documentation>Tare weight</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasureUnitQualifier">
                    <xs:annotation>
                      <xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="KGM">
                          <xs:annotation>
                            <xs:documentation>Kilogram</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasurementValue">
                    <xs:annotation>
                      <xs:documentation>Value of the measured unit</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..18"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="SealNumber" minOccurs="0" maxOccurs="6">
              <xs:annotation>
                <xs:documentation>SEL - An element to identify the the seal and the seal issuer associated with the equipment</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="SealNumber">
                    <xs:annotation>
                      <xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..10"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="SealingPartyCoded" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Identification of the issuer of the seal number</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3"/>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ConsolidationItemNumber
diagram
type restriction of decimal4
properties
isRef 0
content simple
facets
totalDigits 4
annotation
documentation 
Serial number differentiating each separate consignment included in the consolidation
source
<xs:element name="ConsolidationItemNumber">
  <xs:annotation>
    <xs:documentation>Serial number differentiating each separate consignment included in the consolidation</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="decimal4"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/DocumentMessageNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Reference number assigned to the document/message by the issuer. Only provided for backward compatibility
source
<xs:element name="DocumentMessageNumber" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Reference number assigned to the document/message by the issuer. Only provided for backward compatibility</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/DocumentMessageStatus
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration ZZ1
enumeration ZZ2
enumeration ZZ3
annotation
documentation 
Code to identify the status of a document/message
source
<xs:element name="DocumentMessageStatus" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code to identify the status of a document/message</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="ZZ1">
        <xs:annotation>
          <xs:documentation>(Provided for backwards compatibility. Will be treated like a goods consignment except empty container bill)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ2">
        <xs:annotation>
          <xs:documentation>(Provided for backwards compatibility. Will be treated like travel service)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ3">
        <xs:annotation>
          <xs:documentation>(Provided for backwards compatibility. Will be treated like empty container bill)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ControlTotal
diagram
properties
isRef 0
content complex
children ControlQualifier ControlValue MeasureUnitQualifier
annotation
documentation 
CNT - An element to specify totals for a consignment
source
<xs:element name="ControlTotal" maxOccurs="6">
  <xs:annotation>
    <xs:documentation>CNT - An element to specify totals for a consignment</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ControlQualifier">
        <xs:annotation>
          <xs:documentation>Determines the source data elements in the message which forms the basis for ControlValue attribute</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="7">
              <xs:annotation>
                <xs:documentation>Total gross weight</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="11">
              <xs:annotation>
                <xs:documentation>Total number of packages</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="16">
              <xs:annotation>
                <xs:documentation>Total number of equipment</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="26">
              <xs:annotation>
                <xs:documentation>Total gross measurement/cube</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="30">
              <xs:annotation>
                <xs:documentation>Total number of empty containers</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ControlValue" type="decimal18">
        <xs:annotation>
          <xs:documentation>Value obtained from smming the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MeasureUnitQualifier" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Indication of the unit of measurement in which the quantity is expressed</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="KGM">
              <xs:annotation>
                <xs:documentation>Kilogram</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MTQ">
              <xs:annotation>
                <xs:documentation>Cubic meter</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ControlTotal/ControlQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 7
enumeration 11
enumeration 16
enumeration 26
enumeration 30
annotation
documentation 
Determines the source data elements in the message which forms the basis for ControlValue attribute
source
<xs:element name="ControlQualifier">
  <xs:annotation>
    <xs:documentation>Determines the source data elements in the message which forms the basis for ControlValue attribute</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation>Total gross weight</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation>Total number of packages</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="16">
        <xs:annotation>
          <xs:documentation>Total number of equipment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="26">
        <xs:annotation>
          <xs:documentation>Total gross measurement/cube</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:documentation>Total number of empty containers</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ControlTotal/ControlValue
diagram
type decimal18
properties
isRef 0
content simple
facets
totalDigits 18
annotation
documentation 
Value obtained from smming the values specified by the control qualifier throughout the message (hash total)
source
<xs:element name="ControlValue" type="decimal18">
  <xs:annotation>
    <xs:documentation>Value obtained from smming the values specified by the control qualifier throughout the message (hash total)</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/ControlTotal/MeasureUnitQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration KGM
enumeration MTQ
annotation
documentation 
Indication of the unit of measurement in which the quantity is expressed
source
<xs:element name="MeasureUnitQualifier" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Indication of the unit of measurement in which the quantity is expressed</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="KGM">
        <xs:annotation>
          <xs:documentation>Kilogram</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MTQ">
        <xs:annotation>
          <xs:documentation>Cubic meter</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ConsignmentFreeText
diagram
properties
isRef 0
content complex
children TextSubjectQualifier FreeTextNode
annotation
documentation 
FTX - An element to give free form information
source
<xs:element name="ConsignmentFreeText" minOccurs="0" maxOccurs="4">
  <xs:annotation>
    <xs:documentation>FTX - An element to give free form information</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TextSubjectQualifier">
        <xs:annotation>
          <xs:documentation>Code specifying the subject of the free text</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAI">
              <xs:annotation>
                <xs:documentation>General information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAS">
              <xs:annotation>
                <xs:documentation>Bill of lading remarks. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BLR">
              <xs:annotation>
                <xs:documentation>Transport document remarks</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHG">
              <xs:annotation>
                <xs:documentation>Change information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CUS">
              <xs:annotation>
                <xs:documentation>Customs declaration information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="FreeTextNode"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/ConsignmentFreeText/TextSubjectQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAI
enumeration AAS
enumeration BLR
enumeration CHG
enumeration CUS
annotation
documentation 
Code specifying the subject of the free text
source
<xs:element name="TextSubjectQualifier">
  <xs:annotation>
    <xs:documentation>Code specifying the subject of the free text</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAI">
        <xs:annotation>
          <xs:documentation>General information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAS">
        <xs:annotation>
          <xs:documentation>Bill of lading remarks. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BLR">
        <xs:annotation>
          <xs:documentation>Transport document remarks</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CHG">
        <xs:annotation>
          <xs:documentation>Change information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUS">
        <xs:annotation>
          <xs:documentation>Customs declaration information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification
diagram
properties
isRef 0
content complex
children PlaceLocationQualifier PlaceLocationIdentification CodeListQualifier CodeListResponsibleAgency PlaceLocation
annotation
documentation 
LOC - A segment to identify a location applying to the entire consignment.
source
<xs:element name="LocationIdentification" maxOccurs="5">
  <xs:annotation>
    <xs:documentation>LOC - A segment to identify a location applying to the entire consignment.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PlaceLocationQualifier">
        <xs:annotation>
          <xs:documentation>Code identifying the function of a location</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Place of departure</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="7">
              <xs:annotation>
                <xs:documentation>Place of delivery</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="8">
              <xs:annotation>
                <xs:documentation>Place of destination. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="9">
              <xs:annotation>
                <xs:documentation>Place/port of loading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="11">
              <xs:annotation>
                <xs:documentation>Place/port of discharge</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="88">
              <xs:annotation>
                <xs:documentation>Place of receipt</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="91">
              <xs:annotation>
                <xs:documentation>Place of document issue</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocationIdentification">
        <xs:annotation>
          <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..25"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="139">
              <xs:annotation>
                <xs:documentation>Port</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="162">
              <xs:annotation>
                <xs:documentation>Country</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>ISO</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>UN/ECE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocation" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..70">
            <xs:maxLength value="70"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocationQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
enumeration 7
enumeration 8
enumeration 9
enumeration 11
enumeration 88
enumeration 91
annotation
documentation 
Code identifying the function of a location
source
<xs:element name="PlaceLocationQualifier">
  <xs:annotation>
    <xs:documentation>Code identifying the function of a location</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Place of departure</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation>Place of delivery</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation>Place of destination. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="9">
        <xs:annotation>
          <xs:documentation>Place/port of loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="11">
        <xs:annotation>
          <xs:documentation>Place/port of discharge</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="88">
        <xs:annotation>
          <xs:documentation>Place of receipt</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="91">
        <xs:annotation>
          <xs:documentation>Place of document issue</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocationIdentification
diagram
type restriction of string1..25
properties
isRef 0
content simple
facets
minLength 1
maxLength 25
annotation
documentation 
Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2
source
<xs:element name="PlaceLocationIdentification">
  <xs:annotation>
    <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..25"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 139
enumeration 162
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="139">
        <xs:annotation>
          <xs:documentation>Port</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="162">
        <xs:annotation>
          <xs:documentation>Country</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
enumeration 6
annotation
documentation 
Code identifying the agency responsible for a code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>ISO</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>UN/ECE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocation
diagram
type restriction of string1..70
properties
isRef 0
content simple
facets
minLength 1
maxLength 70
annotation
documentation 
Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited
source
<xs:element name="PlaceLocation" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Name of the place/location. It is mandatory if the attribute PlaceLocationIdentification is ommited</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..70">
      <xs:maxLength value="70"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/Reference
diagram
properties
isRef 0
content complex
children ReferenceQualifier ReferenceNumber ReferenceDateTimePeriod
annotation
documentation 
RFF - A group of elements containing a reference and constants which apply to the entire consignment
source
<xs:element name="Reference" maxOccurs="999">
  <xs:annotation>
    <xs:documentation>RFF - A group of elements containing a reference and constants which apply to the entire consignment</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ReferenceQualifier">
        <xs:annotation>
          <xs:documentation>Code giving a specific meaning to a reference element or a reference number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAE">
              <xs:annotation>
                <xs:documentation>Goods declaration number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAM">
              <xs:annotation>
                <xs:documentation>Waybill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAO">
              <xs:annotation>
                <xs:documentation>Consignee's shipment number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAS">
              <xs:annotation>
                <xs:documentation>Transport document number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABE">
              <xs:annotation>
                <xs:documentation>Declarant's reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABH">
              <xs:annotation>
                <xs:documentation>Sub-house bill of landing number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABT">
              <xs:annotation>
                <xs:documentation>Customs declaration number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ACW">
              <xs:annotation>
                <xs:documentation>Reference number to a previous message</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ADO">
              <xs:annotation>
                <xs:documentation>Container work order reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEI">
              <xs:annotation>
                <xs:documentation>Registration number of previous customs declaration</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEV">
              <xs:annotation>
                <xs:documentation>Shipping note number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEW">
              <xs:annotation>
                <xs:documentation>Empty container bill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEX">
              <xs:annotation>
                <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFA">
              <xs:annotation>
                <xs:documentation>Through bill of landing number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFM">
              <xs:annotation>
                <xs:documentation>Secondary Customs reference</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AHI">
              <xs:annotation>
                <xs:documentation>Transport contract reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AKR">
              <xs:annotation>
                <xs:documentation>General cargo consignment reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ANK">
              <xs:annotation>
                <xs:documentation>Reference number assigned by a third party</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AUE">
              <xs:annotation>
                <xs:documentation>Travel service</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AUG">
              <xs:annotation>
                <xs:documentation>Importer's letter of credit reference</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BM">
              <xs:annotation>
                <xs:documentation>Bill of landing number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BN">
              <xs:annotation>
                <xs:documentation>Booking reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CN">
              <xs:annotation>
                <xs:documentation>Carrier's reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CR">
              <xs:annotation>
                <xs:documentation>Customer reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CU">
              <xs:annotation>
                <xs:documentation>Consignor's reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DQ">
              <xs:annotation>
                <xs:documentation>Delivery note number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MB">
              <xs:annotation>
                <xs:documentation>Master bill of landing number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PK">
              <xs:annotation>
                <xs:documentation>Packing list number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UCN">
              <xs:annotation>
                <xs:documentation>Unique consignment reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ReferenceNumber">
        <xs:annotation>
          <xs:documentation>Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="ReferenceDateTimePeriod"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/Reference/ReferenceQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAE
enumeration AAM
enumeration AAO
enumeration AAS
enumeration ABE
enumeration ABH
enumeration ABT
enumeration ACW
enumeration ADO
enumeration AEI
enumeration AEV
enumeration AEW
enumeration AEX
enumeration AFA
enumeration AFM
enumeration AHI
enumeration AKR
enumeration ANK
enumeration AUE
enumeration AUG
enumeration BM
enumeration BN
enumeration CN
enumeration CR
enumeration CU
enumeration DQ
enumeration MB
enumeration PK
enumeration UCN
annotation
documentation 
Code giving a specific meaning to a reference element or a reference number
source
<xs:element name="ReferenceQualifier">
  <xs:annotation>
    <xs:documentation>Code giving a specific meaning to a reference element or a reference number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAE">
        <xs:annotation>
          <xs:documentation>Goods declaration number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAM">
        <xs:annotation>
          <xs:documentation>Waybill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAO">
        <xs:annotation>
          <xs:documentation>Consignee's shipment number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAS">
        <xs:annotation>
          <xs:documentation>Transport document number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABE">
        <xs:annotation>
          <xs:documentation>Declarant's reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABH">
        <xs:annotation>
          <xs:documentation>Sub-house bill of landing number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABT">
        <xs:annotation>
          <xs:documentation>Customs declaration number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ACW">
        <xs:annotation>
          <xs:documentation>Reference number to a previous message</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ADO">
        <xs:annotation>
          <xs:documentation>Container work order reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEI">
        <xs:annotation>
          <xs:documentation>Registration number of previous customs declaration</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEV">
        <xs:annotation>
          <xs:documentation>Shipping note number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEW">
        <xs:annotation>
          <xs:documentation>Empty container bill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEX">
        <xs:annotation>
          <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFA">
        <xs:annotation>
          <xs:documentation>Through bill of landing number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFM">
        <xs:annotation>
          <xs:documentation>Secondary Customs reference</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AHI">
        <xs:annotation>
          <xs:documentation>Transport contract reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AKR">
        <xs:annotation>
          <xs:documentation>General cargo consignment reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ANK">
        <xs:annotation>
          <xs:documentation>Reference number assigned by a third party</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUE">
        <xs:annotation>
          <xs:documentation>Travel service</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AUG">
        <xs:annotation>
          <xs:documentation>Importer's letter of credit reference</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BM">
        <xs:annotation>
          <xs:documentation>Bill of landing number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BN">
        <xs:annotation>
          <xs:documentation>Booking reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CN">
        <xs:annotation>
          <xs:documentation>Carrier's reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CR">
        <xs:annotation>
          <xs:documentation>Customer reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CU">
        <xs:annotation>
          <xs:documentation>Consignor's reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="DQ">
        <xs:annotation>
          <xs:documentation>Delivery note number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB">
        <xs:annotation>
          <xs:documentation>Master bill of landing number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PK">
        <xs:annotation>
          <xs:documentation>Packing list number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UCN">
        <xs:annotation>
          <xs:documentation>Unique consignment reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/Reference/ReferenceNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute
source
<xs:element name="ReferenceNumber">
  <xs:annotation>
    <xs:documentation>Identification number, whose nature and function can be qualified by the ReferenceQualifier attribute</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/DetailsOfTransport
diagram
properties
isRef 0
content complex
children TransportStageQualifier ModeOfTransport
annotation
documentation 
TDT - An element to indicate information related to a certain stage ot the transport, such as mode, means and carrier
source
<xs:element name="DetailsOfTransport" minOccurs="0" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>TDT - An element to indicate information related to a certain stage ot the transport, such as mode, means and carrier</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TransportStageQualifier">
        <xs:annotation>
          <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="10">
              <xs:annotation>
                <xs:documentation>Pre-carriage transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="30">
              <xs:annotation>
                <xs:documentation>On-carriage transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ModeOfTransport">
        <xs:annotation>
          <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="0">
              <xs:annotation>
                <xs:documentation>Transport mode not specified</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="1">
              <xs:annotation>
                <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Rail</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Road</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Air transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Mail</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="7">
              <xs:annotation>
                <xs:documentation>Fixed transport isntallation</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="8">
              <xs:annotation>
                <xs:documentation>Inland water transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ1">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ2">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ3">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ5">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZZ6">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/DetailsOfTransport/TransportStageQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 10
enumeration 30
annotation
documentation 
Qualifier giving a specific meaning to the transport details
source
<xs:element name="TransportStageQualifier">
  <xs:annotation>
    <xs:documentation>Qualifier giving a specific meaning to the transport details</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="10">
        <xs:annotation>
          <xs:documentation>Pre-carriage transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="30">
        <xs:annotation>
          <xs:documentation>On-carriage transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/DetailsOfTransport/ModeOfTransport
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 0
enumeration 1
enumeration 2
enumeration 3
enumeration 4
enumeration 5
enumeration 7
enumeration 8
enumeration ZZ1
enumeration ZZ2
enumeration ZZ3
enumeration ZZ5
enumeration ZZ6
annotation
documentation 
Coded method of transport used for the carriage of the goods
source
<xs:element name="ModeOfTransport">
  <xs:annotation>
    <xs:documentation>Coded method of transport used for the carriage of the goods</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="0">
        <xs:annotation>
          <xs:documentation>Transport mode not specified</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="1">
        <xs:annotation>
          <xs:documentation>Maritime (UN/ECE Rec.19)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Rail</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Road</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Air transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Mail</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation>Fixed transport isntallation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation>Inland water transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ1">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ2">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ3">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ5">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZZ6">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress
diagram
properties
isRef 0
content complex
children PartyQualifier PartyIdentificationDetails FreeNameAndAddress CityName CountrySubentityIdentification PostcodeIdentification Country
annotation
documentation 
NAD - An element to identify the party's name, address and function
source
<xs:element name="NameAndAddress" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>NAD - An element to identify the party's name, address and function</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PartyQualifier">
        <xs:annotation>
          <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AG">
              <xs:annotation>
                <xs:documentation>Agent/representative</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CA">
              <xs:annotation>
                <xs:documentation>Carrier</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CM">
              <xs:annotation>
                <xs:documentation>Customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CN">
              <xs:annotation>
                <xs:documentation>Consignee</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CZ">
              <xs:annotation>
                <xs:documentation>Consignor</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="N1">
              <xs:annotation>
                <xs:documentation>Notify party no.1</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="N2">
              <xs:annotation>
                <xs:documentation>Notify party no.2</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NI">
              <xs:annotation>
                <xs:documentation>Notify party</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OS">
              <xs:annotation>
                <xs:documentation>Original shipper</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:choice>
        <xs:element name="PartyIdentificationDetails" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Identification of a transaction party involved. Required when the paty is Portuguese</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PartyId">
                <xs:annotation>
                  <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..35"/>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CodeListQualifier">
                <xs:annotation>
                  <xs:documentation>Identification of a code list</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..3">
                    <xs:enumeration value="113">
                      <xs:annotation>
                        <xs:documentation>Customs office</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="167">
                      <xs:annotation>
                        <xs:documentation>Tax party identification</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CodeListResponsibleAgency">
                <xs:annotation>
                  <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..3">
                    <xs:enumeration value="155">
                      <xs:annotation>
                        <xs:documentation>PT, Portuguese customs</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FreeNameAndAddress" type="string1..350">
          <xs:annotation>
            <xs:documentation>Unstructured name and address. One to five lines. Required when the party is not Portuguese</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
      <xs:element name="CityName">
        <xs:annotation>
          <xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9">
            <xs:maxLength value="9"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CountrySubentityIdentification" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9">
            <xs:maxLength value="9"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PostcodeIdentification" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9">
            <xs:maxLength value="9"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Country">
        <xs:annotation>
          <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PartyQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AG
enumeration CA
enumeration CM
enumeration CN
enumeration CZ
enumeration N1
enumeration N2
enumeration NI
enumeration OS
annotation
documentation 
Code giving a specific meaning to a party
source
<xs:element name="PartyQualifier">
  <xs:annotation>
    <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AG">
        <xs:annotation>
          <xs:documentation>Agent/representative</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CA">
        <xs:annotation>
          <xs:documentation>Carrier</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CM">
        <xs:annotation>
          <xs:documentation>Customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CN">
        <xs:annotation>
          <xs:documentation>Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CZ">
        <xs:annotation>
          <xs:documentation>Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N1">
        <xs:annotation>
          <xs:documentation>Notify party no.1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N2">
        <xs:annotation>
          <xs:documentation>Notify party no.2</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NI">
        <xs:annotation>
          <xs:documentation>Notify party</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OS">
        <xs:annotation>
          <xs:documentation>Original shipper</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails
diagram
properties
isRef 0
content complex
children PartyId CodeListQualifier CodeListResponsibleAgency
annotation
documentation 
Identification of a transaction party involved. Required when the paty is Portuguese
source
<xs:element name="PartyIdentificationDetails" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of a transaction party involved. Required when the paty is Portuguese</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PartyId">
        <xs:annotation>
          <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="113">
              <xs:annotation>
                <xs:documentation>Customs office</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="167">
              <xs:annotation>
                <xs:documentation>Tax party identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="155">
              <xs:annotation>
                <xs:documentation>PT, Portuguese customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/PartyId
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Code identifying a party involved in a transaction
source
<xs:element name="PartyId">
  <xs:annotation>
    <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 113
enumeration 167
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="113">
        <xs:annotation>
          <xs:documentation>Customs office</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="167">
        <xs:annotation>
          <xs:documentation>Tax party identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 155
annotation
documentation 
Code identifying the agency responsible for the code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="155">
        <xs:annotation>
          <xs:documentation>PT, Portuguese customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/FreeNameAndAddress
diagram
type string1..350
properties
isRef 0
content simple
facets
minLength 1
maxLength 350
annotation
documentation 
Unstructured name and address. One to five lines. Required when the party is not Portuguese
source
<xs:element name="FreeNameAndAddress" type="string1..350">
  <xs:annotation>
    <xs:documentation>Unstructured name and address. One to five lines. Required when the party is not Portuguese</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/CityName
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Name of a city (a town, a village) for adressing purposes
source
<xs:element name="CityName">
  <xs:annotation>
    <xs:documentation>Name of a city (a town, a village) for adressing purposes</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/CountrySubentityIdentification
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.
source
<xs:element name="CountrySubentityIdentification" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/PostcodeIdentification
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Code defining postal zones or addresses. Required for Portugal
source
<xs:element name="PostcodeIdentification" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/NameAndAddress/Country
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Contry's name as specified in ISO 3166
source
<xs:element name="Country">
  <xs:annotation>
    <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails
diagram
properties
isRef 0
content complex
children GoodsItemNumber NumberOfPackages TypeOfPackagesIdentification CodeListQualifier CodeListResponsibleAgency TypeOfPackages LocationIdentification MonetaryAmount AdditionalProductID FreeText NameAndAddress NatureOfCargo Measurements Reference PackageIdentification GovernmentalRequirements SplitGoodsPlacement
annotation
documentation 
GID - A group of elements to describe the goods items for chich transport is undertaken. Agoods item can ben identified by up to three levels of packaging
source
<xs:element name="GoodsItemDetails" minOccurs="0" maxOccurs="999">
  <xs:annotation>
    <xs:documentation>GID - A group of elements to describe the goods items for chich transport is undertaken. Agoods item can ben identified by up to three levels of packaging</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="GoodsItemNumber">
        <xs:annotation>
          <xs:documentation>Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="decimal5"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NumberOfPackages">
        <xs:annotation>
          <xs:documentation>Number of undivisible parts of a shipment (without undoing the packing)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="decimal8">
            <xs:totalDigits value="8"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="TypeOfPackagesIdentification">
        <xs:annotation>
          <xs:documentation>Coded description of the form in which the goods are presented</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..17"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="67">
              <xs:annotation>
                <xs:documentation>Type of package</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>UN/ECE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="TypeOfPackages" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Description of the form in which goods are presented. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="LocationIdentification" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>LOC - An element to specify a country associated with a goods item, such as a country of origin or destination</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PlaceLocationQualifier">
              <xs:annotation>
                <xs:documentation>Code identifying the function of a location</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="76">
                    <xs:annotation>
                      <xs:documentation>Original port of loading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="164">
                    <xs:annotation>
                      <xs:documentation>Berth</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocationIdentification">
              <xs:annotation>
                <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..25"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListQualifier">
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="139">
                    <xs:annotation>
                      <xs:documentation>Port</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="6">
                    <xs:annotation>
                      <xs:documentation>UN/ECE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PlaceLocation" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Name of the place/location, other than 3164 city name</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..70"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Specification of the first related place/location by code</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..25"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="MonetaryAmount" minOccurs="0">
        <xs:annotation>
          <xs:documentation>MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MonetaryAmountTypeQualifier">
              <xs:annotation>
                <xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="39">
                    <xs:annotation>
                      <xs:documentation>Invoice total amount</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MonetaryAmountQTY" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Number of monetary units</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..18"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CurrencyCoded" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="EUR">
                    <xs:annotation>
                      <xs:documentation>EURO</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AdditionalProductID" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>PIA - A group to specify article numbers</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ProductId">
              <xs:annotation>
                <xs:documentation>Indication of the function of the product code</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Product Identification</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ItemNumber">
              <xs:annotation>
                <xs:documentation>A number allocated to a group or item</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ItemNumberType">
              <xs:annotation>
                <xs:documentation>Identification of the type of item number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="HS">
                    <xs:annotation>
                      <xs:documentation>Harmonised system</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="FreeText" maxOccurs="5">
        <xs:annotation>
          <xs:documentation>FTX - An element to give information and/or processable instructions in adition to those in other elements</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TextSubjectQualifier">
              <xs:annotation>
                <xs:documentation>Code specifying the subject of the free text</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                  <xs:enumeration value="AAA">
                    <xs:annotation>
                      <xs:documentation>Goods description</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAI">
                    <xs:annotation>
                      <xs:documentation>General information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CUS">
                    <xs:annotation>
                      <xs:documentation>Customs declaration information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="TRA">
                    <xs:annotation>
                      <xs:documentation>Transportation information
General information regarding the transport of the cargo.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="FreeTextNode"/>
            <xs:element name="LanguageCoded" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code of language (ISO 639-1988).</xs:documentation>
              </xs:annotation>
              <xs:simpleType name="Code">
                <xs:restriction base="string1..3">
                  <xs:enumeration value="EN">
                    <xs:annotation>
                      <xs:documentation>English</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="PT">
                    <xs:annotation>
                      <xs:documentation>Portuguese</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NameAndAddress" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>NAD - An element to specify an address of a place of collection or delivery for a goods item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="PartyQualifier">
              <xs:annotation>
                <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="CA">
                    <xs:annotation>
                      <xs:documentation>Carrier</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CN">
                    <xs:annotation>
                      <xs:documentation>Consignee</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CZ">
                    <xs:annotation>
                      <xs:documentation>Consignor</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="EX">
                    <xs:annotation>
                      <xs:documentation>Exporter</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="IM">
                    <xs:annotation>
                      <xs:documentation>Importer</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MS">
                    <xs:annotation>
                      <xs:documentation>Document/message issuer/sender</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="N1">
                    <xs:annotation>
                      <xs:documentation>Notify party no.1</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="N2">
                    <xs:annotation>
                      <xs:documentation>Notify party no.2</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="NI">
                    <xs:annotation>
                      <xs:documentation>Notify party</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="OS">
                    <xs:annotation>
                      <xs:documentation>Original shipper</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="TR">
                    <xs:annotation>
                      <xs:documentation>Terminal operator</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="WD">
                    <xs:annotation>
                      <xs:documentation>Warehouse depositor</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="WH">
                    <xs:annotation>
                      <xs:documentation>Warehouse keeper</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZOP">
                    <xs:annotation>
                      <xs:documentation>Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:choice>
              <xs:element name="PartyIdentificationDetails" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PartyId">
                      <xs:annotation>
                        <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..35"/>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="CodeListQualifier">
                      <xs:annotation>
                        <xs:documentation>Identification of a code list</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..3">
                          <xs:enumeration value="167">
                            <xs:annotation>
                              <xs:documentation>Tax party identification</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                          <xs:enumeration value="Z01">
                            <xs:annotation>
                              <xs:documentation>Authorized entity identification</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="CodeListResponsibleAgency">
                      <xs:annotation>
                        <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="string1..3">
                          <xs:enumeration value="155">
                            <xs:annotation>
                              <xs:documentation>PT, Portuguese customs</xs:documentation>
                            </xs:annotation>
                          </xs:enumeration>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="FreeNameAndAddress" type="string1..512">
                <xs:annotation>
                  <xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:choice>
            <xs:element name="CountrySubentityIdentification" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9">
                  <xs:maxLength value="9"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PostcodeIdentification" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..9">
                  <xs:maxLength value="9"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Country">
              <xs:annotation>
                <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NatureOfCargo" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>GDS - An element to describe the nature of the cargo</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="NatureOfCargo">
              <xs:annotation>
                <xs:documentation>Code indicating the type of cargo as a rough classification</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="CodeListResponsibleAgency" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>CEC</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Measurements" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MeasurementPurposeQualifier">
              <xs:annotation>
                <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAE">
                    <xs:annotation>
                      <xs:documentation>Measurement</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAI">
                    <xs:annotation>
                      <xs:documentation>Item weight. Only provided for backward compatibility</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="WT">
                    <xs:annotation>
                      <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PropertyMeasured">
              <xs:annotation>
                <xs:documentation>Specification of the property measured</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAD">
                    <xs:annotation>
                      <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABJ">
                    <xs:annotation>
                      <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="T"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasureUnitQualifier">
              <xs:annotation>
                <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="KGM">
                    <xs:annotation>
                      <xs:documentation>Kilogram</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MTQ">
                    <xs:annotation>
                      <xs:documentation>Cubic meter</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasurementValue">
              <xs:annotation>
                <xs:documentation>Value of the measured quantity</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..18"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Reference" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>RFF - An element to identify a reference to a goods item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ReferenceQualifier">
              <xs:annotation>
                <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAB">
                    <xs:annotation>
                      <xs:documentation>Proforma invoice number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAM">
                    <xs:annotation>
                      <xs:documentation>Waybill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAP">
                    <xs:annotation>
                      <xs:documentation>Part consignment number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAS">
                    <xs:annotation>
                      <xs:documentation>Transport document number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABH">
                    <xs:annotation>
                      <xs:documentation>Sub-house bill of ladign number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABT">
                    <xs:annotation>
                      <xs:documentation>Customs declaration number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEE">
                    <xs:annotation>
                      <xs:documentation>Eur 1 certificate number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEW">
                    <xs:annotation>
                      <xs:documentation>Empty container bill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEX">
                    <xs:annotation>
                      <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AEZ">
                    <xs:annotation>
                      <xs:documentation>Despatch note (post parcels) number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFA">
                    <xs:annotation>
                      <xs:documentation>Through bill of lading number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFB">
                    <xs:annotation>
                      <xs:documentation>Cargo manifest number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AFM">
                    <xs:annotation>
                      <xs:documentation>Secondary Customs reference</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AHI">
                    <xs:annotation>
                      <xs:documentation>Transport contract reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AHT">
                    <xs:annotation>
                      <xs:documentation>Quarantine/treatment status reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AID">
                    <xs:annotation>
                      <xs:documentation>Certificate of conformity</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AIZ">
                    <xs:annotation>
                      <xs:documentation>Consolidated invoice number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AKA">
                    <xs:annotation>
                      <xs:documentation>Container disposition order reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AKR">
                    <xs:annotation>
                      <xs:documentation>General cargo consignment reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ALK">
                    <xs:annotation>
                      <xs:documentation>Consignee's invoice number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BH">
                    <xs:annotation>
                      <xs:documentation>House bill of lading number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BM">
                    <xs:annotation>
                      <xs:documentation>Bill of lading number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="BN">
                    <xs:annotation>
                      <xs:documentation>Booking reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CFO">
                    <xs:annotation>
                      <xs:documentation>Consignor's further order</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CG">
                    <xs:annotation>
                      <xs:documentation>Consignee's order number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CMR">
                    <xs:annotation>
                      <xs:documentation>Road consignment note number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="CU">
                    <xs:annotation>
                      <xs:documentation>Consignor's reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ED">
                    <xs:annotation>
                      <xs:documentation>Export declaration</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="EX">
                    <xs:annotation>
                      <xs:documentation>Export licence number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="FF">
                    <xs:annotation>
                      <xs:documentation>Freight forwarders reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="HWB">
                    <xs:annotation>
                      <xs:documentation>House waybill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="IP">
                    <xs:annotation>
                      <xs:documentation>Import licence number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="IV">
                    <xs:annotation>
                      <xs:documentation>Invoice number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MA">
                    <xs:annotation>
                      <xs:documentation>Ship notice/manifest number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MB">
                    <xs:annotation>
                      <xs:documentation>Master bill of lading number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="MWB">
                    <xs:annotation>
                      <xs:documentation>Master air waybill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="PK">
                    <xs:annotation>
                      <xs:documentation>Packing list number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="RCN">
                    <xs:annotation>
                      <xs:documentation>Railway consignment </xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="SRN">
                    <xs:annotation>
                      <xs:documentation>Shipment reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="TB">
                    <xs:annotation>
                      <xs:documentation>Truckers's bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="UCN">
                    <xs:annotation>
                      <xs:documentation>Unique consignment reference number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="WY">
                    <xs:annotation>
                      <xs:documentation>Rail waybill number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ReferenceNumber" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Identification number.</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="ReferenceDateTimePeriod" maxOccurs="9"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="PackageIdentification" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation>PCI - An elemrent to specify marks and numbers of a goods item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MarkingInstructions" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code indicating instructions on how specified packages or physical units should be marked</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Shipping marks on packages in free text</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ContainerPackageStatus" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GovernmentalRequirements" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TransportMovement" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code indicating the movement of goods (import, export, transit)</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="ZC">
                    <xs:annotation>
                      <xs:documentation>Goods that their status can be proofed.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZF">
                    <xs:annotation>
                      <xs:documentation>Shiiping of community goods with destination/origin in a EC Customs territory where where Directive 77/388/CEE is not applied.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZN">
                    <xs:annotation>
                      <xs:documentation>Remaining goods</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS0">
                    <xs:annotation>
                      <xs:documentation>No Simplified Procedures</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS1">
                    <xs:annotation>
                      <xs:documentation>Simplified Procedures Level I</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZS2">
                    <xs:annotation>
                      <xs:documentation>Simplified Procedures Level II</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZT1">
                    <xs:annotation>
                      <xs:documentation>Goods subject to an external community transit regime.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZTD">
                    <xs:annotation>
                      <xs:documentation>Goods subject to a transit regime or transported in the scope of the active perfectionism, deposit or temporary import.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZTF">
                    <xs:annotation>
                      <xs:documentation>Goods subject to internal transit regime from, to or between non fiscal territories.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZW">
                    <xs:annotation>
                      <xs:documentation>T2F Customs status.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ZX">
                    <xs:annotation>
                      <xs:documentation>Community Goods to be exported not subject to a transit regime.</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="GovernmentAgency">
              <xs:annotation>
                <xs:documentation>Code to indicate the government agency involved</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="5">
                    <xs:annotation>
                      <xs:documentation>Customs</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="FreeText" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="TextSubjectQualifier">
                    <xs:annotation>
                      <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="CUS">
                          <xs:annotation>
                            <xs:documentation>Customs declaration information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element ref="FreeTextNode"/>
                  <xs:element name="LanguageCoded" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>Code specifying the subject of the free text</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="PT">
                          <xs:annotation>
                            <xs:documentation>General information</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
              <xs:annotation>
                <xs:documentation>DOC - An element to indicate a document required by the government</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DocumentMessageName">
                    <xs:annotation>
                      <xs:documentation>Document/message identifier expressed in code</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="2">
                          <xs:annotation>
                            <xs:documentation>Certificate of conformity</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="3">
                          <xs:annotation>
                            <xs:documentation>Certificate of quality</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="18">
                          <xs:annotation>
                            <xs:documentation>Movement certificate A.TR.1</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="271">
                          <xs:annotation>
                            <xs:documentation>Packing list</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="380">
                          <xs:annotation>
                            <xs:documentation>Commercial invoice</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="650">
                          <xs:annotation>
                            <xs:documentation>Handling order</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="701">
                          <xs:annotation>
                            <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="703">
                          <xs:annotation>
                            <xs:documentation>House of waybill</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="704">
                          <xs:annotation>
                            <xs:documentation>Master bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="705">
                          <xs:annotation>
                            <xs:documentation>Bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="710">
                          <xs:annotation>
                            <xs:documentation>Sea waybill</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="712">
                          <xs:annotation>
                            <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="714">
                          <xs:annotation>
                            <xs:documentation>House bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="716">
                          <xs:annotation>
                            <xs:documentation>Forwarder's bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="720">
                          <xs:annotation>
                            <xs:documentation>Rail consignment note (generic term)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="722">
                          <xs:annotation>
                            <xs:documentation>Road list-SMGS</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="730">
                          <xs:annotation>
                            <xs:documentation>Road consignment note</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="740">
                          <xs:annotation>
                            <xs:documentation>Air waybill</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="741">
                          <xs:annotation>
                            <xs:documentation>Master air waybill</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="746">
                          <xs:annotation>
                            <xs:documentation>Delivery notice (rail transport)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="750">
                          <xs:annotation>
                            <xs:documentation>Dispatch note (post parcels)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="760">
                          <xs:annotation>
                            <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="761">
                          <xs:annotation>
                            <xs:documentation>Through bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="763">
                          <xs:annotation>
                            <xs:documentation>Forwarder's certificate of transport</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="764">
                          <xs:annotation>
                            <xs:documentation>Combined transport document (generic)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="765">
                          <xs:annotation>
                            <xs:documentation>Multimodal transport document (generic)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="766">
                          <xs:annotation>
                            <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="785">
                          <xs:annotation>
                            <xs:documentation>Cargo manifest</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="787">
                          <xs:annotation>
                            <xs:documentation>Bordereau</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="796">
                          <xs:annotation>
                            <xs:documentation>Derat document</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="797">
                          <xs:annotation>
                            <xs:documentation>Maritime declaration of health</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="820">
                          <xs:annotation>
                            <xs:documentation>Dispatch note model T</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="821">
                          <xs:annotation>
                            <xs:documentation>Dispatch note model T1</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="822">
                          <xs:annotation>
                            <xs:documentation>Dispatch note model T2</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="823">
                          <xs:annotation>
                            <xs:documentation>Control document T5</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="825">
                          <xs:annotation>
                            <xs:documentation>Dispatch note model T2L</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="830">
                          <xs:annotation>
                            <xs:documentation>Goods declaration for exportation</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="851">
                          <xs:annotation>
                            <xs:documentation>Phytosanitary certificate</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="852">
                          <xs:annotation>
                            <xs:documentation>Sanitary certificate</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="853">
                          <xs:annotation>
                            <xs:documentation>Sanitary certificate</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="861">
                          <xs:annotation>
                            <xs:documentation>Certificate of origin</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="862">
                          <xs:annotation>
                            <xs:documentation>Declaration of origin</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="864">
                          <xs:annotation>
                            <xs:documentation>Preference certificate of origin</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="865">
                          <xs:annotation>
                            <xs:documentation>Certificate of origin from GSP</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="933">
                          <xs:annotation>
                            <xs:documentation>Cargo declaration (arrival)</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="941">
                          <xs:annotation>
                            <xs:documentation>Embargo permit</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="951">
                          <xs:annotation>
                            <xs:documentation>TIF form</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="952">
                          <xs:annotation>
                            <xs:documentation>TIR carnet</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="954">
                          <xs:annotation>
                            <xs:documentation>EUR 1 certificate of origin</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="955">
                          <xs:annotation>
                            <xs:documentation>ATA carnet</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="960">
                          <xs:annotation>
                            <xs:documentation>Single administrative document</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z01">
                          <xs:annotation>
                            <xs:documentation>T2LF</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z02">
                          <xs:annotation>
                            <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z03">
                          <xs:annotation>
                            <xs:documentation>Customs status certificate</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z04">
                          <xs:annotation>
                            <xs:documentation>DAA</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z05">
                          <xs:annotation>
                            <xs:documentation>Administrative document</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z06">
                          <xs:annotation>
                            <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="Z99">
                          <xs:annotation>
                            <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DocumentMessageNumber">
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DateTimePeriod">
                    <xs:annotation>
                      <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="DateTimePeriodQualifier">
                          <xs:annotation>
                            <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:enumeration value="182">
                                <xs:annotation>
                                  <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="DateTimePeriod">
                          <xs:annotation>
                            <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..35"/>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="DateTimePeriodFormatQualifier">
                          <xs:annotation>
                            <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="string1..3">
                              <xs:maxLength value="3"/>
                              <xs:enumeration value="102">
                                <xs:annotation>
                                  <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                              <xs:enumeration value="602">
                                <xs:annotation>
                                  <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
                                </xs:annotation>
                              </xs:enumeration>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SplitGoodsPlacement" minOccurs="0" maxOccurs="999">
        <xs:annotation>
          <xs:documentation>SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="EquipmentIdentificationNumber">
              <xs:annotation>
                <xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..17"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="Measurements" minOccurs="0">
              <xs:annotation>
                <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="MeasurementPurposeQualifier">
                    <xs:annotation>
                      <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAE">
                          <xs:annotation>
                            <xs:documentation>Measurement</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="AAI">
                          <xs:annotation>
                            <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="WT">
                          <xs:annotation>
                            <xs:documentation>Weights</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="PropertyMeasured">
                    <xs:annotation>
                      <xs:documentation>Specification of the property measured</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="AAD">
                          <xs:annotation>
                            <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="ABJ">
                          <xs:annotation>
                            <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="T">
                          <xs:annotation>
                            <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasureUnitQualifier">
                    <xs:annotation>
                      <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="KGM">
                          <xs:annotation>
                            <xs:documentation>Kilogram</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MeasurementValue">
                    <xs:annotation>
                      <xs:documentation>Value of the measured quantity</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..18"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="NumberOfUnits" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="NumberOfUnits" type="string0..17">
                          <xs:annotation>
                            <xs:documentation>Number of units</xs:documentation>
                          </xs:annotation>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GoodsItemNumber
diagram
type restriction of decimal5
properties
isRef 0
content simple
facets
totalDigits 5
annotation
documentation 
Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration
source
<xs:element name="GoodsItemNumber">
  <xs:annotation>
    <xs:documentation>Serial number differentiating each separate goods item entry of a consignment, as contained in one document/declaration</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="decimal5"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NumberOfPackages
diagram
type restriction of decimal8
properties
isRef 0
content simple
facets
totalDigits 8
annotation
documentation 
Number of undivisible parts of a shipment (without undoing the packing)
source
<xs:element name="NumberOfPackages">
  <xs:annotation>
    <xs:documentation>Number of undivisible parts of a shipment (without undoing the packing)</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="decimal8">
      <xs:totalDigits value="8"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/TypeOfPackagesIdentification
diagram
type restriction of string1..17
properties
isRef 0
content simple
facets
minLength 1
maxLength 17
annotation
documentation 
Coded description of the form in which the goods are presented
source
<xs:element name="TypeOfPackagesIdentification">
  <xs:annotation>
    <xs:documentation>Coded description of the form in which the goods are presented</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..17"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 67
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="67">
        <xs:annotation>
          <xs:documentation>Type of package</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 6
annotation
documentation 
Code identifying the agency responsible for a code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>UN/ECE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/TypeOfPackages
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Description of the form in which goods are presented. Only provided for backward compatibility
source
<xs:element name="TypeOfPackages" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Description of the form in which goods are presented. Only provided for backward compatibility</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification
diagram
properties
isRef 0
content complex
children PlaceLocationQualifier PlaceLocationIdentification CodeListQualifier CodeListResponsibleAgency PlaceLocation RelatedPlaceLocationIdentification
annotation
documentation 
LOC - An element to specify a country associated with a goods item, such as a country of origin or destination
source
<xs:element name="LocationIdentification" minOccurs="0" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>LOC - An element to specify a country associated with a goods item, such as a country of origin or destination</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PlaceLocationQualifier">
        <xs:annotation>
          <xs:documentation>Code identifying the function of a location</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="76">
              <xs:annotation>
                <xs:documentation>Original port of loading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="164">
              <xs:annotation>
                <xs:documentation>Berth</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocationIdentification">
        <xs:annotation>
          <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..25"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="139">
              <xs:annotation>
                <xs:documentation>Port</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>UN/ECE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PlaceLocation" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Name of the place/location, other than 3164 city name</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..70"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specification of the first related place/location by code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..25"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocationQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 76
enumeration 164
annotation
documentation 
Code identifying the function of a location
source
<xs:element name="PlaceLocationQualifier">
  <xs:annotation>
    <xs:documentation>Code identifying the function of a location</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="76">
        <xs:annotation>
          <xs:documentation>Original port of loading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="164">
        <xs:annotation>
          <xs:documentation>Berth</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocationIdentification
diagram
type restriction of string1..25
properties
isRef 0
content simple
facets
minLength 1
maxLength 25
annotation
documentation 
Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2
source
<xs:element name="PlaceLocationIdentification">
  <xs:annotation>
    <xs:documentation>Identification of the of the place/location. UN/ECE Recommendation 16(3rd edition) - UNLOCODE - Codes for ports and other locations (Doc. Ref ECE/TRADE/227) v2003.2</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..25"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 139
source
<xs:element name="CodeListQualifier">
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="139">
        <xs:annotation>
          <xs:documentation>Port</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 6
annotation
documentation 
Code identifying the agency responsible for a code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>UN/ECE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocation
diagram
type restriction of string1..70
properties
isRef 0
content simple
facets
minLength 1
maxLength 70
annotation
documentation 
Name of the place/location, other than 3164 city name
source
<xs:element name="PlaceLocation" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Name of the place/location, other than 3164 city name</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..70"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/RelatedPlaceLocationIdentification
diagram
type restriction of string1..25
properties
isRef 0
content simple
facets
minLength 1
maxLength 25
annotation
documentation 
Specification of the first related place/location by code
source
<xs:element name="RelatedPlaceLocationIdentification" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Specification of the first related place/location by code</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..25"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount
diagram
properties
isRef 0
content complex
children MonetaryAmountTypeQualifier MonetaryAmountQTY CurrencyCoded
annotation
documentation 
MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc.
source
<xs:element name="MonetaryAmount" minOccurs="0">
  <xs:annotation>
    <xs:documentation>MOA - A segment to specify a monetary amount associated with a goods item, such as declared value, FOB value, etc.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MonetaryAmountTypeQualifier">
        <xs:annotation>
          <xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="39">
              <xs:annotation>
                <xs:documentation>Invoice total amount</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MonetaryAmountQTY" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Number of monetary units</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..18"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CurrencyCoded" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="EUR">
              <xs:annotation>
                <xs:documentation>EURO</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/MonetaryAmountTypeQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 39
annotation
documentation 
Amount of goods or services stated as a monetary amount in a specified currency.
source
<xs:element name="MonetaryAmountTypeQualifier">
  <xs:annotation>
    <xs:documentation>Amount of goods or services stated as a monetary amount in a specified currency.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="39">
        <xs:annotation>
          <xs:documentation>Invoice total amount</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/MonetaryAmountQTY
diagram
type restriction of string1..18
properties
isRef 0
content simple
facets
minLength 1
maxLength 18
annotation
documentation 
Number of monetary units
source
<xs:element name="MonetaryAmountQTY" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Number of monetary units</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..18"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/CurrencyCoded
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration EUR
annotation
documentation 
Identification of the name or symbol of the monetary unit involved in the transaction
source
<xs:element name="CurrencyCoded" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of the name or symbol of the monetary unit involved in the transaction</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="EUR">
        <xs:annotation>
          <xs:documentation>EURO</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID
diagram
properties
isRef 0
content complex
children ProductId ItemNumber ItemNumberType
annotation
documentation 
PIA - A group to specify article numbers
source
<xs:element name="AdditionalProductID" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>PIA - A group to specify article numbers</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ProductId">
        <xs:annotation>
          <xs:documentation>Indication of the function of the product code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Product Identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ItemNumber">
        <xs:annotation>
          <xs:documentation>A number allocated to a group or item</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ItemNumberType">
        <xs:annotation>
          <xs:documentation>Identification of the type of item number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="HS">
              <xs:annotation>
                <xs:documentation>Harmonised system</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ProductId
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
annotation
documentation 
Indication of the function of the product code
source
<xs:element name="ProductId">
  <xs:annotation>
    <xs:documentation>Indication of the function of the product code</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Product Identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ItemNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
A number allocated to a group or item
source
<xs:element name="ItemNumber">
  <xs:annotation>
    <xs:documentation>A number allocated to a group or item</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ItemNumberType
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration HS
annotation
documentation 
Identification of the type of item number
source
<xs:element name="ItemNumberType">
  <xs:annotation>
    <xs:documentation>Identification of the type of item number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="HS">
        <xs:annotation>
          <xs:documentation>Harmonised system</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText
diagram
properties
isRef 0
content complex
children TextSubjectQualifier FreeTextNode LanguageCoded
annotation
documentation 
FTX - An element to give information and/or processable instructions in adition to those in other elements
source
<xs:element name="FreeText" maxOccurs="5">
  <xs:annotation>
    <xs:documentation>FTX - An element to give information and/or processable instructions in adition to those in other elements</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TextSubjectQualifier">
        <xs:annotation>
          <xs:documentation>Code specifying the subject of the free text</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="AAA">
              <xs:annotation>
                <xs:documentation>Goods description</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAI">
              <xs:annotation>
                <xs:documentation>General information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CUS">
              <xs:annotation>
                <xs:documentation>Customs declaration information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="TRA">
              <xs:annotation>
                <xs:documentation>Transportation information
General information regarding the transport of the cargo.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="FreeTextNode"/>
      <xs:element name="LanguageCoded" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code of language (ISO 639-1988).</xs:documentation>
        </xs:annotation>
        <xs:simpleType name="Code">
          <xs:restriction base="string1..3">
            <xs:enumeration value="EN">
              <xs:annotation>
                <xs:documentation>English</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PT">
              <xs:annotation>
                <xs:documentation>Portuguese</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText/TextSubjectQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAA
enumeration AAI
enumeration CUS
enumeration TRA
annotation
documentation 
Code specifying the subject of the free text
source
<xs:element name="TextSubjectQualifier">
  <xs:annotation>
    <xs:documentation>Code specifying the subject of the free text</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="AAA">
        <xs:annotation>
          <xs:documentation>Goods description</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAI">
        <xs:annotation>
          <xs:documentation>General information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CUS">
        <xs:annotation>
          <xs:documentation>Customs declaration information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TRA">
        <xs:annotation>
          <xs:documentation>Transportation information
General information regarding the transport of the cargo.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText/LanguageCoded
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration EN
enumeration PT
annotation
documentation 
Code of language (ISO 639-1988).
source
<xs:element name="LanguageCoded" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code of language (ISO 639-1988).</xs:documentation>
  </xs:annotation>
  <xs:simpleType name="Code">
    <xs:restriction base="string1..3">
      <xs:enumeration value="EN">
        <xs:annotation>
          <xs:documentation>English</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PT">
        <xs:annotation>
          <xs:documentation>Portuguese</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress
diagram
properties
isRef 0
content complex
children PartyQualifier PartyIdentificationDetails FreeNameAndAddress CountrySubentityIdentification PostcodeIdentification Country
annotation
documentation 
NAD - An element to specify an address of a place of collection or delivery for a goods item
source
<xs:element name="NameAndAddress" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>NAD - An element to specify an address of a place of collection or delivery for a goods item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PartyQualifier">
        <xs:annotation>
          <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="CA">
              <xs:annotation>
                <xs:documentation>Carrier</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CN">
              <xs:annotation>
                <xs:documentation>Consignee</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CZ">
              <xs:annotation>
                <xs:documentation>Consignor</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="EX">
              <xs:annotation>
                <xs:documentation>Exporter</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="IM">
              <xs:annotation>
                <xs:documentation>Importer</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MS">
              <xs:annotation>
                <xs:documentation>Document/message issuer/sender</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="N1">
              <xs:annotation>
                <xs:documentation>Notify party no.1</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="N2">
              <xs:annotation>
                <xs:documentation>Notify party no.2</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NI">
              <xs:annotation>
                <xs:documentation>Notify party</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OS">
              <xs:annotation>
                <xs:documentation>Original shipper</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="TR">
              <xs:annotation>
                <xs:documentation>Terminal operator</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="WD">
              <xs:annotation>
                <xs:documentation>Warehouse depositor</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="WH">
              <xs:annotation>
                <xs:documentation>Warehouse keeper</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZOP">
              <xs:annotation>
                <xs:documentation>Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:choice>
        <xs:element name="PartyIdentificationDetails" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PartyId">
                <xs:annotation>
                  <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..35"/>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CodeListQualifier">
                <xs:annotation>
                  <xs:documentation>Identification of a code list</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..3">
                    <xs:enumeration value="167">
                      <xs:annotation>
                        <xs:documentation>Tax party identification</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="Z01">
                      <xs:annotation>
                        <xs:documentation>Authorized entity identification</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CodeListResponsibleAgency">
                <xs:annotation>
                  <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="string1..3">
                    <xs:enumeration value="155">
                      <xs:annotation>
                        <xs:documentation>PT, Portuguese customs</xs:documentation>
                      </xs:annotation>
                    </xs:enumeration>
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FreeNameAndAddress" type="string1..512">
          <xs:annotation>
            <xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
      <xs:element name="CountrySubentityIdentification" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9">
            <xs:maxLength value="9"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PostcodeIdentification" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..9">
            <xs:maxLength value="9"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Country">
        <xs:annotation>
          <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration CA
enumeration CN
enumeration CZ
enumeration EX
enumeration IM
enumeration MS
enumeration N1
enumeration N2
enumeration NI
enumeration OS
enumeration TR
enumeration WD
enumeration WH
enumeration ZOP
annotation
documentation 
Code giving a specific meaning to a party
source
<xs:element name="PartyQualifier">
  <xs:annotation>
    <xs:documentation>Code giving a specific meaning to a party</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="CA">
        <xs:annotation>
          <xs:documentation>Carrier</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CN">
        <xs:annotation>
          <xs:documentation>Consignee</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CZ">
        <xs:annotation>
          <xs:documentation>Consignor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EX">
        <xs:annotation>
          <xs:documentation>Exporter</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IM">
        <xs:annotation>
          <xs:documentation>Importer</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MS">
        <xs:annotation>
          <xs:documentation>Document/message issuer/sender</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N1">
        <xs:annotation>
          <xs:documentation>Notify party no.1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="N2">
        <xs:annotation>
          <xs:documentation>Notify party no.2</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="NI">
        <xs:annotation>
          <xs:documentation>Notify party</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OS">
        <xs:annotation>
          <xs:documentation>Original shipper</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TR">
        <xs:annotation>
          <xs:documentation>Terminal operator</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WD">
        <xs:annotation>
          <xs:documentation>Warehouse depositor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WH">
        <xs:annotation>
          <xs:documentation>Warehouse keeper</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZOP">
        <xs:annotation>
          <xs:documentation>Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails
diagram
properties
isRef 0
content complex
children PartyId CodeListQualifier CodeListResponsibleAgency
annotation
documentation 
Identification of a transaction party involved. Required when the entity is Portuguese
source
<xs:element name="PartyIdentificationDetails" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of a transaction party involved. Required when the entity is Portuguese</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="PartyId">
        <xs:annotation>
          <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="167">
              <xs:annotation>
                <xs:documentation>Tax party identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z01">
              <xs:annotation>
                <xs:documentation>Authorized entity identification</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="155">
              <xs:annotation>
                <xs:documentation>PT, Portuguese customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/PartyId
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Code identifying a party involved in a transaction
source
<xs:element name="PartyId">
  <xs:annotation>
    <xs:documentation>Code identifying a party involved in a transaction</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 167
enumeration Z01
annotation
documentation 
Identification of a code list
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="167">
        <xs:annotation>
          <xs:documentation>Tax party identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z01">
        <xs:annotation>
          <xs:documentation>Authorized entity identification</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 155
annotation
documentation 
Code identifying the agency responsible for the code list
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for the code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="155">
        <xs:annotation>
          <xs:documentation>PT, Portuguese customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/FreeNameAndAddress
diagram
type string1..512
properties
isRef 0
content simple
facets
minLength 1
maxLength 512
annotation
documentation 
Unstructured name and address. Required when the party is not Portuguese
source
<xs:element name="FreeNameAndAddress" type="string1..512">
  <xs:annotation>
    <xs:documentation>Unstructured name and address. Required when the party is not Portuguese</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/CountrySubentityIdentification
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.
source
<xs:element name="CountrySubentityIdentification" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of the name of sub-entities (state, province) defined by the appropriate governmental agencies.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PostcodeIdentification
diagram
type restriction of string1..9
properties
isRef 0
content simple
facets
minLength 1
maxLength 9
annotation
documentation 
Code defining postal zones or addresses. Required for Portugal
source
<xs:element name="PostcodeIdentification" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code defining postal zones or addresses. Required for Portugal</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..9">
      <xs:maxLength value="9"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/Country
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Contry's name as specified in ISO 3166
source
<xs:element name="Country">
  <xs:annotation>
    <xs:documentation>Contry's name as specified in ISO 3166</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NatureOfCargo
diagram
properties
isRef 0
content complex
children NatureOfCargo CodeListResponsibleAgency
annotation
documentation 
GDS - An element to describe the nature of the cargo
source
<xs:element name="NatureOfCargo" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>GDS - An element to describe the nature of the cargo</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="NatureOfCargo">
        <xs:annotation>
          <xs:documentation>Code indicating the type of cargo as a rough classification</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>CEC</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NatureOfCargo/NatureOfCargo
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Code indicating the type of cargo as a rough classification
source
<xs:element name="NatureOfCargo">
  <xs:annotation>
    <xs:documentation>Code indicating the type of cargo as a rough classification</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/NatureOfCargo/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 2
annotation
documentation 
Code identifying the agency responsible for a code list
source
<xs:element name="CodeListResponsibleAgency" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>CEC</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements
diagram
properties
isRef 0
content complex
children MeasurementPurposeQualifier PropertyMeasured MeasureUnitQualifier MeasurementValue
annotation
documentation 
MEA - An element do spcify measurements, other than dimensions, applicable to a goods item
source
<xs:element name="Measurements" minOccurs="0" maxOccurs="2">
  <xs:annotation>
    <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MeasurementPurposeQualifier">
        <xs:annotation>
          <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAE">
              <xs:annotation>
                <xs:documentation>Measurement</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAI">
              <xs:annotation>
                <xs:documentation>Item weight. Only provided for backward compatibility</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="WT">
              <xs:annotation>
                <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PropertyMeasured">
        <xs:annotation>
          <xs:documentation>Specification of the property measured</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAD">
              <xs:annotation>
                <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABJ">
              <xs:annotation>
                <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="T"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasureUnitQualifier">
        <xs:annotation>
          <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="KGM">
              <xs:annotation>
                <xs:documentation>Kilogram</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MTQ">
              <xs:annotation>
                <xs:documentation>Cubic meter</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasurementValue">
        <xs:annotation>
          <xs:documentation>Value of the measured quantity</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..18"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasurementPurposeQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAE
enumeration AAI
enumeration WT
annotation
documentation 
Specifies the purpose of the measurement
source
<xs:element name="MeasurementPurposeQualifier">
  <xs:annotation>
    <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAE">
        <xs:annotation>
          <xs:documentation>Measurement</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAI">
        <xs:annotation>
          <xs:documentation>Item weight. Only provided for backward compatibility</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WT">
        <xs:annotation>
          <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/PropertyMeasured
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAD
enumeration ABJ
enumeration T
annotation
documentation 
Specification of the property measured
source
<xs:element name="PropertyMeasured">
  <xs:annotation>
    <xs:documentation>Specification of the property measured</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAD">
        <xs:annotation>
          <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABJ">
        <xs:annotation>
          <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="T"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasureUnitQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration KGM
enumeration MTQ
annotation
documentation 
Indication of the unit in which the measured quantity is expressed
source
<xs:element name="MeasureUnitQualifier">
  <xs:annotation>
    <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="KGM">
        <xs:annotation>
          <xs:documentation>Kilogram</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MTQ">
        <xs:annotation>
          <xs:documentation>Cubic meter</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasurementValue
diagram
type restriction of string1..18
properties
isRef 0
content simple
facets
minLength 1
maxLength 18
annotation
documentation 
Value of the measured quantity
source
<xs:element name="MeasurementValue">
  <xs:annotation>
    <xs:documentation>Value of the measured quantity</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..18"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference
diagram
properties
isRef 0
content complex
children ReferenceQualifier ReferenceNumber ReferenceDateTimePeriod
annotation
documentation 
RFF - An element to identify a reference to a goods item
source
<xs:element name="Reference" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>RFF - An element to identify a reference to a goods item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="ReferenceQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAB">
              <xs:annotation>
                <xs:documentation>Proforma invoice number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAM">
              <xs:annotation>
                <xs:documentation>Waybill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAP">
              <xs:annotation>
                <xs:documentation>Part consignment number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAS">
              <xs:annotation>
                <xs:documentation>Transport document number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABH">
              <xs:annotation>
                <xs:documentation>Sub-house bill of ladign number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABT">
              <xs:annotation>
                <xs:documentation>Customs declaration number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEE">
              <xs:annotation>
                <xs:documentation>Eur 1 certificate number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEW">
              <xs:annotation>
                <xs:documentation>Empty container bill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEX">
              <xs:annotation>
                <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AEZ">
              <xs:annotation>
                <xs:documentation>Despatch note (post parcels) number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFA">
              <xs:annotation>
                <xs:documentation>Through bill of lading number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFB">
              <xs:annotation>
                <xs:documentation>Cargo manifest number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AFM">
              <xs:annotation>
                <xs:documentation>Secondary Customs reference</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AHI">
              <xs:annotation>
                <xs:documentation>Transport contract reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AHT">
              <xs:annotation>
                <xs:documentation>Quarantine/treatment status reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AID">
              <xs:annotation>
                <xs:documentation>Certificate of conformity</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AIZ">
              <xs:annotation>
                <xs:documentation>Consolidated invoice number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AKA">
              <xs:annotation>
                <xs:documentation>Container disposition order reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AKR">
              <xs:annotation>
                <xs:documentation>General cargo consignment reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ALK">
              <xs:annotation>
                <xs:documentation>Consignee's invoice number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BH">
              <xs:annotation>
                <xs:documentation>House bill of lading number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BM">
              <xs:annotation>
                <xs:documentation>Bill of lading number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BN">
              <xs:annotation>
                <xs:documentation>Booking reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CFO">
              <xs:annotation>
                <xs:documentation>Consignor's further order</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CG">
              <xs:annotation>
                <xs:documentation>Consignee's order number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CMR">
              <xs:annotation>
                <xs:documentation>Road consignment note number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CU">
              <xs:annotation>
                <xs:documentation>Consignor's reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ED">
              <xs:annotation>
                <xs:documentation>Export declaration</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="EX">
              <xs:annotation>
                <xs:documentation>Export licence number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="FF">
              <xs:annotation>
                <xs:documentation>Freight forwarders reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="HWB">
              <xs:annotation>
                <xs:documentation>House waybill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="IP">
              <xs:annotation>
                <xs:documentation>Import licence number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="IV">
              <xs:annotation>
                <xs:documentation>Invoice number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MA">
              <xs:annotation>
                <xs:documentation>Ship notice/manifest number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MB">
              <xs:annotation>
                <xs:documentation>Master bill of lading number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="MWB">
              <xs:annotation>
                <xs:documentation>Master air waybill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PK">
              <xs:annotation>
                <xs:documentation>Packing list number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="RCN">
              <xs:annotation>
                <xs:documentation>Railway consignment </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SRN">
              <xs:annotation>
                <xs:documentation>Shipment reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="TB">
              <xs:annotation>
                <xs:documentation>Truckers's bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UCN">
              <xs:annotation>
                <xs:documentation>Unique consignment reference number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="WY">
              <xs:annotation>
                <xs:documentation>Rail waybill number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ReferenceNumber" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Identification number.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="ReferenceDateTimePeriod" maxOccurs="9"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference/ReferenceQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAB
enumeration AAM
enumeration AAP
enumeration AAS
enumeration ABH
enumeration ABT
enumeration AEE
enumeration AEW
enumeration AEX
enumeration AEZ
enumeration AFA
enumeration AFB
enumeration AFM
enumeration AHI
enumeration AHT
enumeration AID
enumeration AIZ
enumeration AKA
enumeration AKR
enumeration ALK
enumeration BH
enumeration BM
enumeration BN
enumeration CFO
enumeration CG
enumeration CMR
enumeration CU
enumeration ED
enumeration EX
enumeration FF
enumeration HWB
enumeration IP
enumeration IV
enumeration MA
enumeration MB
enumeration MWB
enumeration PK
enumeration RCN
enumeration SRN
enumeration TB
enumeration UCN
enumeration WY
annotation
documentation 
Code giving specific meaning to a reference element or a reference number
source
<xs:element name="ReferenceQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a reference element or a reference number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAB">
        <xs:annotation>
          <xs:documentation>Proforma invoice number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAM">
        <xs:annotation>
          <xs:documentation>Waybill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAP">
        <xs:annotation>
          <xs:documentation>Part consignment number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAS">
        <xs:annotation>
          <xs:documentation>Transport document number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABH">
        <xs:annotation>
          <xs:documentation>Sub-house bill of ladign number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABT">
        <xs:annotation>
          <xs:documentation>Customs declaration number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEE">
        <xs:annotation>
          <xs:documentation>Eur 1 certificate number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEW">
        <xs:annotation>
          <xs:documentation>Empty container bill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEX">
        <xs:annotation>
          <xs:documentation>Non-negotiable maritime transport document number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AEZ">
        <xs:annotation>
          <xs:documentation>Despatch note (post parcels) number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFA">
        <xs:annotation>
          <xs:documentation>Through bill of lading number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFB">
        <xs:annotation>
          <xs:documentation>Cargo manifest number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AFM">
        <xs:annotation>
          <xs:documentation>Secondary Customs reference</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AHI">
        <xs:annotation>
          <xs:documentation>Transport contract reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AHT">
        <xs:annotation>
          <xs:documentation>Quarantine/treatment status reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AID">
        <xs:annotation>
          <xs:documentation>Certificate of conformity</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AIZ">
        <xs:annotation>
          <xs:documentation>Consolidated invoice number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AKA">
        <xs:annotation>
          <xs:documentation>Container disposition order reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AKR">
        <xs:annotation>
          <xs:documentation>General cargo consignment reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ALK">
        <xs:annotation>
          <xs:documentation>Consignee's invoice number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BH">
        <xs:annotation>
          <xs:documentation>House bill of lading number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BM">
        <xs:annotation>
          <xs:documentation>Bill of lading number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="BN">
        <xs:annotation>
          <xs:documentation>Booking reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CFO">
        <xs:annotation>
          <xs:documentation>Consignor's further order</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CG">
        <xs:annotation>
          <xs:documentation>Consignee's order number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CMR">
        <xs:annotation>
          <xs:documentation>Road consignment note number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CU">
        <xs:annotation>
          <xs:documentation>Consignor's reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ED">
        <xs:annotation>
          <xs:documentation>Export declaration</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="EX">
        <xs:annotation>
          <xs:documentation>Export licence number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="FF">
        <xs:annotation>
          <xs:documentation>Freight forwarders reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="HWB">
        <xs:annotation>
          <xs:documentation>House waybill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IP">
        <xs:annotation>
          <xs:documentation>Import licence number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IV">
        <xs:annotation>
          <xs:documentation>Invoice number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MA">
        <xs:annotation>
          <xs:documentation>Ship notice/manifest number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MB">
        <xs:annotation>
          <xs:documentation>Master bill of lading number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="MWB">
        <xs:annotation>
          <xs:documentation>Master air waybill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="PK">
        <xs:annotation>
          <xs:documentation>Packing list number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="RCN">
        <xs:annotation>
          <xs:documentation>Railway consignment </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SRN">
        <xs:annotation>
          <xs:documentation>Shipment reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="TB">
        <xs:annotation>
          <xs:documentation>Truckers's bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="UCN">
        <xs:annotation>
          <xs:documentation>Unique consignment reference number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WY">
        <xs:annotation>
          <xs:documentation>Rail waybill number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference/ReferenceNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
Identification number.
source
<xs:element name="ReferenceNumber" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification number.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification
diagram
properties
isRef 0
content complex
children MarkingInstructions ShippingMarks ContainerPackageStatus
annotation
documentation 
PCI - An elemrent to specify marks and numbers of a goods item
source
<xs:element name="PackageIdentification" minOccurs="0" maxOccurs="999">
  <xs:annotation>
    <xs:documentation>PCI - An elemrent to specify marks and numbers of a goods item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MarkingInstructions" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code indicating instructions on how specified packages or physical units should be marked</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Shipping marks on packages in free text</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ContainerPackageStatus" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/MarkingInstructions
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Code indicating instructions on how specified packages or physical units should be marked
source
<xs:element name="MarkingInstructions" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code indicating instructions on how specified packages or physical units should be marked</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/ShippingMarks
diagram
type string1..350
properties
isRef 0
content simple
facets
minLength 1
maxLength 350
annotation
documentation 
Shipping marks on packages in free text
source
<xs:element name="ShippingMarks" type="string1..350" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Shipping marks on packages in free text</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/ContainerPackageStatus
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty
source
<xs:element name="ContainerPackageStatus" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code to identify weather goods of separate description or comprising separate consignments are contained in the same external package, or to indicate that a container o similiar unit load device is empty</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements
diagram
properties
isRef 0
content complex
children TransportMovement GovernmentAgency FreeText DocumentDetails
annotation
documentation 
GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item
source
<xs:element name="GovernmentalRequirements" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>GOR - An element to indicate applicable governmental procedures related to import, export and transport of the item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TransportMovement" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code indicating the movement of goods (import, export, transit)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="ZC">
              <xs:annotation>
                <xs:documentation>Goods that their status can be proofed.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZF">
              <xs:annotation>
                <xs:documentation>Shiiping of community goods with destination/origin in a EC Customs territory where where Directive 77/388/CEE is not applied.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZN">
              <xs:annotation>
                <xs:documentation>Remaining goods</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS0">
              <xs:annotation>
                <xs:documentation>No Simplified Procedures</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS1">
              <xs:annotation>
                <xs:documentation>Simplified Procedures Level I</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZS2">
              <xs:annotation>
                <xs:documentation>Simplified Procedures Level II</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZT1">
              <xs:annotation>
                <xs:documentation>Goods subject to an external community transit regime.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZTD">
              <xs:annotation>
                <xs:documentation>Goods subject to a transit regime or transported in the scope of the active perfectionism, deposit or temporary import.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZTF">
              <xs:annotation>
                <xs:documentation>Goods subject to internal transit regime from, to or between non fiscal territories.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZW">
              <xs:annotation>
                <xs:documentation>T2F Customs status.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZX">
              <xs:annotation>
                <xs:documentation>Community Goods to be exported not subject to a transit regime.</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="GovernmentAgency">
        <xs:annotation>
          <xs:documentation>Code to indicate the government agency involved</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Customs</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FreeText" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="TextSubjectQualifier">
              <xs:annotation>
                <xs:documentation>Code specifying the subject of the free text</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="CUS">
                    <xs:annotation>
                      <xs:documentation>Customs declaration information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element ref="FreeTextNode"/>
            <xs:element name="LanguageCoded" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Code specifying the subject of the free text</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="PT">
                    <xs:annotation>
                      <xs:documentation>General information</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
        <xs:annotation>
          <xs:documentation>DOC - An element to indicate a document required by the government</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DocumentMessageName">
              <xs:annotation>
                <xs:documentation>Document/message identifier expressed in code</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="2">
                    <xs:annotation>
                      <xs:documentation>Certificate of conformity</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="3">
                    <xs:annotation>
                      <xs:documentation>Certificate of quality</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="18">
                    <xs:annotation>
                      <xs:documentation>Movement certificate A.TR.1</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="271">
                    <xs:annotation>
                      <xs:documentation>Packing list</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="380">
                    <xs:annotation>
                      <xs:documentation>Commercial invoice</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="650">
                    <xs:annotation>
                      <xs:documentation>Handling order</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="701">
                    <xs:annotation>
                      <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="703">
                    <xs:annotation>
                      <xs:documentation>House of waybill</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="704">
                    <xs:annotation>
                      <xs:documentation>Master bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="705">
                    <xs:annotation>
                      <xs:documentation>Bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="710">
                    <xs:annotation>
                      <xs:documentation>Sea waybill</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="712">
                    <xs:annotation>
                      <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="714">
                    <xs:annotation>
                      <xs:documentation>House bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="716">
                    <xs:annotation>
                      <xs:documentation>Forwarder's bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="720">
                    <xs:annotation>
                      <xs:documentation>Rail consignment note (generic term)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="722">
                    <xs:annotation>
                      <xs:documentation>Road list-SMGS</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="730">
                    <xs:annotation>
                      <xs:documentation>Road consignment note</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="740">
                    <xs:annotation>
                      <xs:documentation>Air waybill</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="741">
                    <xs:annotation>
                      <xs:documentation>Master air waybill</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="746">
                    <xs:annotation>
                      <xs:documentation>Delivery notice (rail transport)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="750">
                    <xs:annotation>
                      <xs:documentation>Dispatch note (post parcels)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="760">
                    <xs:annotation>
                      <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="761">
                    <xs:annotation>
                      <xs:documentation>Through bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="763">
                    <xs:annotation>
                      <xs:documentation>Forwarder's certificate of transport</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="764">
                    <xs:annotation>
                      <xs:documentation>Combined transport document (generic)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="765">
                    <xs:annotation>
                      <xs:documentation>Multimodal transport document (generic)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="766">
                    <xs:annotation>
                      <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="785">
                    <xs:annotation>
                      <xs:documentation>Cargo manifest</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="787">
                    <xs:annotation>
                      <xs:documentation>Bordereau</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="796">
                    <xs:annotation>
                      <xs:documentation>Derat document</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="797">
                    <xs:annotation>
                      <xs:documentation>Maritime declaration of health</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="820">
                    <xs:annotation>
                      <xs:documentation>Dispatch note model T</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="821">
                    <xs:annotation>
                      <xs:documentation>Dispatch note model T1</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="822">
                    <xs:annotation>
                      <xs:documentation>Dispatch note model T2</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="823">
                    <xs:annotation>
                      <xs:documentation>Control document T5</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="825">
                    <xs:annotation>
                      <xs:documentation>Dispatch note model T2L</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="830">
                    <xs:annotation>
                      <xs:documentation>Goods declaration for exportation</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="851">
                    <xs:annotation>
                      <xs:documentation>Phytosanitary certificate</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="852">
                    <xs:annotation>
                      <xs:documentation>Sanitary certificate</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="853">
                    <xs:annotation>
                      <xs:documentation>Sanitary certificate</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="861">
                    <xs:annotation>
                      <xs:documentation>Certificate of origin</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="862">
                    <xs:annotation>
                      <xs:documentation>Declaration of origin</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="864">
                    <xs:annotation>
                      <xs:documentation>Preference certificate of origin</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="865">
                    <xs:annotation>
                      <xs:documentation>Certificate of origin from GSP</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="933">
                    <xs:annotation>
                      <xs:documentation>Cargo declaration (arrival)</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="941">
                    <xs:annotation>
                      <xs:documentation>Embargo permit</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="951">
                    <xs:annotation>
                      <xs:documentation>TIF form</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="952">
                    <xs:annotation>
                      <xs:documentation>TIR carnet</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="954">
                    <xs:annotation>
                      <xs:documentation>EUR 1 certificate of origin</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="955">
                    <xs:annotation>
                      <xs:documentation>ATA carnet</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="960">
                    <xs:annotation>
                      <xs:documentation>Single administrative document</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z01">
                    <xs:annotation>
                      <xs:documentation>T2LF</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z02">
                    <xs:annotation>
                      <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z03">
                    <xs:annotation>
                      <xs:documentation>Customs status certificate</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z04">
                    <xs:annotation>
                      <xs:documentation>DAA</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z05">
                    <xs:annotation>
                      <xs:documentation>Administrative document</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z06">
                    <xs:annotation>
                      <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="Z99">
                    <xs:annotation>
                      <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DocumentMessageNumber">
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriod">
              <xs:annotation>
                <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DateTimePeriodQualifier">
                    <xs:annotation>
                      <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:enumeration value="182">
                          <xs:annotation>
                            <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DateTimePeriod">
                    <xs:annotation>
                      <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..35"/>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DateTimePeriodFormatQualifier">
                    <xs:annotation>
                      <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="string1..3">
                        <xs:maxLength value="3"/>
                        <xs:enumeration value="102">
                          <xs:annotation>
                            <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                        <xs:enumeration value="602">
                          <xs:annotation>
                            <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
                          </xs:annotation>
                        </xs:enumeration>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/TransportMovement
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration ZC
enumeration ZF
enumeration ZN
enumeration ZS0
enumeration ZS1
enumeration ZS2
enumeration ZT1
enumeration ZTD
enumeration ZTF
enumeration ZW
enumeration ZX
annotation
documentation 
Code indicating the movement of goods (import, export, transit)
source
<xs:element name="TransportMovement" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code indicating the movement of goods (import, export, transit)</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="ZC">
        <xs:annotation>
          <xs:documentation>Goods that their status can be proofed.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZF">
        <xs:annotation>
          <xs:documentation>Shiiping of community goods with destination/origin in a EC Customs territory where where Directive 77/388/CEE is not applied.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZN">
        <xs:annotation>
          <xs:documentation>Remaining goods</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS0">
        <xs:annotation>
          <xs:documentation>No Simplified Procedures</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS1">
        <xs:annotation>
          <xs:documentation>Simplified Procedures Level I</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZS2">
        <xs:annotation>
          <xs:documentation>Simplified Procedures Level II</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZT1">
        <xs:annotation>
          <xs:documentation>Goods subject to an external community transit regime.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZTD">
        <xs:annotation>
          <xs:documentation>Goods subject to a transit regime or transported in the scope of the active perfectionism, deposit or temporary import.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZTF">
        <xs:annotation>
          <xs:documentation>Goods subject to internal transit regime from, to or between non fiscal territories.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZW">
        <xs:annotation>
          <xs:documentation>T2F Customs status.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ZX">
        <xs:annotation>
          <xs:documentation>Community Goods to be exported not subject to a transit regime.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/GovernmentAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
annotation
documentation 
Code to indicate the government agency involved
source
<xs:element name="GovernmentAgency">
  <xs:annotation>
    <xs:documentation>Code to indicate the government agency involved</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Customs</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText
diagram
properties
isRef 0
content complex
children TextSubjectQualifier FreeTextNode LanguageCoded
annotation
documentation 
FTX - An element to specify  supplementary processable information
source
<xs:element name="FreeText" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>FTX - An element to specify  supplementary processable information</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="TextSubjectQualifier">
        <xs:annotation>
          <xs:documentation>Code specifying the subject of the free text</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="CUS">
              <xs:annotation>
                <xs:documentation>Customs declaration information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element ref="FreeTextNode"/>
      <xs:element name="LanguageCoded" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Code specifying the subject of the free text</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="PT">
              <xs:annotation>
                <xs:documentation>General information</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText/TextSubjectQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration CUS
annotation
documentation 
Code specifying the subject of the free text
source
<xs:element name="TextSubjectQualifier">
  <xs:annotation>
    <xs:documentation>Code specifying the subject of the free text</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="CUS">
        <xs:annotation>
          <xs:documentation>Customs declaration information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText/LanguageCoded
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration PT
annotation
documentation 
Code specifying the subject of the free text
source
<xs:element name="LanguageCoded" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Code specifying the subject of the free text</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="PT">
        <xs:annotation>
          <xs:documentation>General information</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails
diagram
properties
isRef 0
content complex
children DocumentMessageName DocumentMessageNumber DateTimePeriod
annotation
documentation 
DOC - An element to indicate a document required by the government
source
<xs:element name="DocumentDetails" minOccurs="0" maxOccurs="9">
  <xs:annotation>
    <xs:documentation>DOC - An element to indicate a document required by the government</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DocumentMessageName">
        <xs:annotation>
          <xs:documentation>Document/message identifier expressed in code</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="2">
              <xs:annotation>
                <xs:documentation>Certificate of conformity</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="3">
              <xs:annotation>
                <xs:documentation>Certificate of quality</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="18">
              <xs:annotation>
                <xs:documentation>Movement certificate A.TR.1</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="271">
              <xs:annotation>
                <xs:documentation>Packing list</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="380">
              <xs:annotation>
                <xs:documentation>Commercial invoice</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="650">
              <xs:annotation>
                <xs:documentation>Handling order</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="701">
              <xs:annotation>
                <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="703">
              <xs:annotation>
                <xs:documentation>House of waybill</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="704">
              <xs:annotation>
                <xs:documentation>Master bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="705">
              <xs:annotation>
                <xs:documentation>Bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="710">
              <xs:annotation>
                <xs:documentation>Sea waybill</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="712">
              <xs:annotation>
                <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="714">
              <xs:annotation>
                <xs:documentation>House bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="716">
              <xs:annotation>
                <xs:documentation>Forwarder's bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="720">
              <xs:annotation>
                <xs:documentation>Rail consignment note (generic term)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="722">
              <xs:annotation>
                <xs:documentation>Road list-SMGS</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="730">
              <xs:annotation>
                <xs:documentation>Road consignment note</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="740">
              <xs:annotation>
                <xs:documentation>Air waybill</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="741">
              <xs:annotation>
                <xs:documentation>Master air waybill</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="746">
              <xs:annotation>
                <xs:documentation>Delivery notice (rail transport)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="750">
              <xs:annotation>
                <xs:documentation>Dispatch note (post parcels)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="760">
              <xs:annotation>
                <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="761">
              <xs:annotation>
                <xs:documentation>Through bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="763">
              <xs:annotation>
                <xs:documentation>Forwarder's certificate of transport</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="764">
              <xs:annotation>
                <xs:documentation>Combined transport document (generic)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="765">
              <xs:annotation>
                <xs:documentation>Multimodal transport document (generic)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="766">
              <xs:annotation>
                <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="785">
              <xs:annotation>
                <xs:documentation>Cargo manifest</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="787">
              <xs:annotation>
                <xs:documentation>Bordereau</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="796">
              <xs:annotation>
                <xs:documentation>Derat document</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="797">
              <xs:annotation>
                <xs:documentation>Maritime declaration of health</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="820">
              <xs:annotation>
                <xs:documentation>Dispatch note model T</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="821">
              <xs:annotation>
                <xs:documentation>Dispatch note model T1</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="822">
              <xs:annotation>
                <xs:documentation>Dispatch note model T2</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="823">
              <xs:annotation>
                <xs:documentation>Control document T5</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="825">
              <xs:annotation>
                <xs:documentation>Dispatch note model T2L</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="830">
              <xs:annotation>
                <xs:documentation>Goods declaration for exportation</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="851">
              <xs:annotation>
                <xs:documentation>Phytosanitary certificate</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="852">
              <xs:annotation>
                <xs:documentation>Sanitary certificate</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="853">
              <xs:annotation>
                <xs:documentation>Sanitary certificate</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="861">
              <xs:annotation>
                <xs:documentation>Certificate of origin</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="862">
              <xs:annotation>
                <xs:documentation>Declaration of origin</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="864">
              <xs:annotation>
                <xs:documentation>Preference certificate of origin</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="865">
              <xs:annotation>
                <xs:documentation>Certificate of origin from GSP</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="933">
              <xs:annotation>
                <xs:documentation>Cargo declaration (arrival)</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="941">
              <xs:annotation>
                <xs:documentation>Embargo permit</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="951">
              <xs:annotation>
                <xs:documentation>TIF form</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="952">
              <xs:annotation>
                <xs:documentation>TIR carnet</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="954">
              <xs:annotation>
                <xs:documentation>EUR 1 certificate of origin</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="955">
              <xs:annotation>
                <xs:documentation>ATA carnet</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="960">
              <xs:annotation>
                <xs:documentation>Single administrative document</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z01">
              <xs:annotation>
                <xs:documentation>T2LF</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z02">
              <xs:annotation>
                <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z03">
              <xs:annotation>
                <xs:documentation>Customs status certificate</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z04">
              <xs:annotation>
                <xs:documentation>DAA</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z05">
              <xs:annotation>
                <xs:documentation>Administrative document</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z06">
              <xs:annotation>
                <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Z99">
              <xs:annotation>
                <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DocumentMessageNumber">
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod">
        <xs:annotation>
          <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DateTimePeriodQualifier">
              <xs:annotation>
                <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="182">
                    <xs:annotation>
                      <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriod">
              <xs:annotation>
                <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..35"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="DateTimePeriodFormatQualifier">
              <xs:annotation>
                <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:maxLength value="3"/>
                  <xs:enumeration value="102">
                    <xs:annotation>
                      <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="602">
                    <xs:annotation>
                      <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DocumentMessageName
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 2
enumeration 3
enumeration 18
enumeration 271
enumeration 380
enumeration 650
enumeration 701
enumeration 703
enumeration 704
enumeration 705
enumeration 710
enumeration 712
enumeration 714
enumeration 716
enumeration 720
enumeration 722
enumeration 730
enumeration 740
enumeration 741
enumeration 746
enumeration 750
enumeration 760
enumeration 761
enumeration 763
enumeration 764
enumeration 765
enumeration 766
enumeration 785
enumeration 787
enumeration 796
enumeration 797
enumeration 820
enumeration 821
enumeration 822
enumeration 823
enumeration 825
enumeration 830
enumeration 851
enumeration 852
enumeration 853
enumeration 861
enumeration 862
enumeration 864
enumeration 865
enumeration 933
enumeration 941
enumeration 951
enumeration 952
enumeration 954
enumeration 955
enumeration 960
enumeration Z01
enumeration Z02
enumeration Z03
enumeration Z04
enumeration Z05
enumeration Z06
enumeration Z99
annotation
documentation 
Document/message identifier expressed in code
source
<xs:element name="DocumentMessageName">
  <xs:annotation>
    <xs:documentation>Document/message identifier expressed in code</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="2">
        <xs:annotation>
          <xs:documentation>Certificate of conformity</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="3">
        <xs:annotation>
          <xs:documentation>Certificate of quality</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="18">
        <xs:annotation>
          <xs:documentation>Movement certificate A.TR.1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="271">
        <xs:annotation>
          <xs:documentation>Packing list</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="380">
        <xs:annotation>
          <xs:documentation>Commercial invoice</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="650">
        <xs:annotation>
          <xs:documentation>Handling order</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="701">
        <xs:annotation>
          <xs:documentation>Universal (multipurpose) transport document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="703">
        <xs:annotation>
          <xs:documentation>House of waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="704">
        <xs:annotation>
          <xs:documentation>Master bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="705">
        <xs:annotation>
          <xs:documentation>Bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="710">
        <xs:annotation>
          <xs:documentation>Sea waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="712">
        <xs:annotation>
          <xs:documentation>Non-negotiable maritime transport document (generic)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="714">
        <xs:annotation>
          <xs:documentation>House bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="716">
        <xs:annotation>
          <xs:documentation>Forwarder's bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="720">
        <xs:annotation>
          <xs:documentation>Rail consignment note (generic term)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="722">
        <xs:annotation>
          <xs:documentation>Road list-SMGS</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="730">
        <xs:annotation>
          <xs:documentation>Road consignment note</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="740">
        <xs:annotation>
          <xs:documentation>Air waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="741">
        <xs:annotation>
          <xs:documentation>Master air waybill</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="746">
        <xs:annotation>
          <xs:documentation>Delivery notice (rail transport)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="750">
        <xs:annotation>
          <xs:documentation>Dispatch note (post parcels)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="760">
        <xs:annotation>
          <xs:documentation>Multimodal/combined transport document (generic)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="761">
        <xs:annotation>
          <xs:documentation>Through bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="763">
        <xs:annotation>
          <xs:documentation>Forwarder's certificate of transport</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="764">
        <xs:annotation>
          <xs:documentation>Combined transport document (generic)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="765">
        <xs:annotation>
          <xs:documentation>Multimodal transport document (generic)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="766">
        <xs:annotation>
          <xs:documentation>Combined transport bill of lading/multimodal bill of lading</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="785">
        <xs:annotation>
          <xs:documentation>Cargo manifest</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="787">
        <xs:annotation>
          <xs:documentation>Bordereau</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="796">
        <xs:annotation>
          <xs:documentation>Derat document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="797">
        <xs:annotation>
          <xs:documentation>Maritime declaration of health</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="820">
        <xs:annotation>
          <xs:documentation>Dispatch note model T</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="821">
        <xs:annotation>
          <xs:documentation>Dispatch note model T1</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="822">
        <xs:annotation>
          <xs:documentation>Dispatch note model T2</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="823">
        <xs:annotation>
          <xs:documentation>Control document T5</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="825">
        <xs:annotation>
          <xs:documentation>Dispatch note model T2L</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="830">
        <xs:annotation>
          <xs:documentation>Goods declaration for exportation</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="851">
        <xs:annotation>
          <xs:documentation>Phytosanitary certificate</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="852">
        <xs:annotation>
          <xs:documentation>Sanitary certificate</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="853">
        <xs:annotation>
          <xs:documentation>Sanitary certificate</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="861">
        <xs:annotation>
          <xs:documentation>Certificate of origin</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="862">
        <xs:annotation>
          <xs:documentation>Declaration of origin</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="864">
        <xs:annotation>
          <xs:documentation>Preference certificate of origin</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="865">
        <xs:annotation>
          <xs:documentation>Certificate of origin from GSP</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="933">
        <xs:annotation>
          <xs:documentation>Cargo declaration (arrival)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="941">
        <xs:annotation>
          <xs:documentation>Embargo permit</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="951">
        <xs:annotation>
          <xs:documentation>TIF form</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="952">
        <xs:annotation>
          <xs:documentation>TIR carnet</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="954">
        <xs:annotation>
          <xs:documentation>EUR 1 certificate of origin</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="955">
        <xs:annotation>
          <xs:documentation>ATA carnet</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="960">
        <xs:annotation>
          <xs:documentation>Single administrative document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z01">
        <xs:annotation>
          <xs:documentation>T2LF</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z02">
        <xs:annotation>
          <xs:documentation>Certificate of Authorized Expeditor</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z03">
        <xs:annotation>
          <xs:documentation>Customs status certificate</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z04">
        <xs:annotation>
          <xs:documentation>DAA</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z05">
        <xs:annotation>
          <xs:documentation>Administrative document</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z06">
        <xs:annotation>
          <xs:documentation>Transit simplified procedure authorization number</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Z99">
        <xs:annotation>
          <xs:documentation>For backward compatibility only. Element will be ignored</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DocumentMessageNumber
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
source
<xs:element name="DocumentMessageNumber">
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod
diagram
properties
isRef 0
content complex
children DateTimePeriodQualifier DateTimePeriod DateTimePeriodFormatQualifier
annotation
documentation 
DTM - Element to indicate the date/time of the document/message
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>DTM - Element to indicate the date/time of the document/message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DateTimePeriodQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="182">
              <xs:annotation>
                <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod">
        <xs:annotation>
          <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriodFormatQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:maxLength value="3"/>
            <xs:enumeration value="102">
              <xs:annotation>
                <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="602">
              <xs:annotation>
                <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriodQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 182
annotation
documentation 
Code giving specific meaning to a date, time or period
source
<xs:element name="DateTimePeriodQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="182">
        <xs:annotation>
          <xs:documentation>Date when a document/message has been or will be issued</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriod
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The value of a date, a date and a tiem, a time or a period, in a specified representation
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriodFormatQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 102
enumeration 602
annotation
documentation 
Specification of the representation of a date, date and time or a period
source
<xs:element name="DateTimePeriodFormatQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:maxLength value="3"/>
      <xs:enumeration value="102">
        <xs:annotation>
          <xs:documentation>CCYYMMDD

Calendar date:
C= Century
Y= Year
M= Month
D= Day</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="602">
        <xs:annotation>
          <xs:documentation>CCYY

Calendar date:
C= Century
Y= Year</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement
diagram
properties
isRef 0
content complex
children EquipmentIdentificationNumber NumberOfPackages Measurements
annotation
documentation 
SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary
source
<xs:element name="SplitGoodsPlacement" minOccurs="0" maxOccurs="999">
  <xs:annotation>
    <xs:documentation>SGP - An element to indicate the equipment in which the goods are transported. This element is dependent on wether the goods are loaded or not into some transport equipment. For bulk containers this group is not necessary</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="EquipmentIdentificationNumber">
        <xs:annotation>
          <xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..17"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Measurements" minOccurs="0">
        <xs:annotation>
          <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MeasurementPurposeQualifier">
              <xs:annotation>
                <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAE">
                    <xs:annotation>
                      <xs:documentation>Measurement</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="AAI">
                    <xs:annotation>
                      <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="WT">
                    <xs:annotation>
                      <xs:documentation>Weights</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PropertyMeasured">
              <xs:annotation>
                <xs:documentation>Specification of the property measured</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="AAD">
                    <xs:annotation>
                      <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="ABJ">
                    <xs:annotation>
                      <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                  <xs:enumeration value="T">
                    <xs:annotation>
                      <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasureUnitQualifier">
              <xs:annotation>
                <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="KGM">
                    <xs:annotation>
                      <xs:documentation>Kilogram</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasurementValue">
              <xs:annotation>
                <xs:documentation>Value of the measured quantity</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..18"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="NumberOfUnits" minOccurs="0">
              <xs:annotation>
                <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="NumberOfUnits" type="string0..17">
                    <xs:annotation>
                      <xs:documentation>Number of units</xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/EquipmentIdentificationNumber
diagram
type restriction of string1..17
properties
isRef 0
content simple
facets
minLength 1
maxLength 17
annotation
documentation 
Marks (letters or numbers) which identify equipment used for transport, such as a container
source
<xs:element name="EquipmentIdentificationNumber">
  <xs:annotation>
    <xs:documentation>Marks (letters or numbers) which identify equipment used for transport, such as a container</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..17"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/NumberOfPackages
diagram
type decimal8
properties
isRef 0
content simple
facets
totalDigits 8
annotation
documentation 
Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing
source
<xs:element name="NumberOfPackages" type="decimal8" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Number of individual parts of a shipment either unpacked, or packed in such a way
that they cannot be divided without first undoing the packing</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements
diagram
properties
isRef 0
content complex
children MeasurementPurposeQualifier PropertyMeasured MeasureUnitQualifier MeasurementValue NumberOfUnits
annotation
documentation 
MEA - An element do spcify measurements, other than dimensions, applicable to a goods item
source
<xs:element name="Measurements" minOccurs="0">
  <xs:annotation>
    <xs:documentation>MEA - An element do spcify measurements, other than dimensions, applicable to a goods item</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MeasurementPurposeQualifier">
        <xs:annotation>
          <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAE">
              <xs:annotation>
                <xs:documentation>Measurement</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AAI">
              <xs:annotation>
                <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="WT">
              <xs:annotation>
                <xs:documentation>Weights</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PropertyMeasured">
        <xs:annotation>
          <xs:documentation>Specification of the property measured</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="AAD">
              <xs:annotation>
                <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ABJ">
              <xs:annotation>
                <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="T">
              <xs:annotation>
                <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasureUnitQualifier">
        <xs:annotation>
          <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="KGM">
              <xs:annotation>
                <xs:documentation>Kilogram</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasurementValue">
        <xs:annotation>
          <xs:documentation>Value of the measured quantity</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..18"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="NumberOfUnits" minOccurs="0">
        <xs:annotation>
          <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="NumberOfUnits" type="string0..17">
              <xs:annotation>
                <xs:documentation>Number of units</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasurementPurposeQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAE
enumeration AAI
enumeration WT
annotation
documentation 
Specifies the purpose of the measurement
source
<xs:element name="MeasurementPurposeQualifier">
  <xs:annotation>
    <xs:documentation>Specifies the purpose of the measurement</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAE">
        <xs:annotation>
          <xs:documentation>Measurement</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="AAI">
        <xs:annotation>
          <xs:documentation>Item weight (provided for backward compatibility only. It will be tretad like code AAE</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="WT">
        <xs:annotation>
          <xs:documentation>Weights</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/PropertyMeasured
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration AAD
enumeration ABJ
enumeration T
annotation
documentation 
Specification of the property measured
source
<xs:element name="PropertyMeasured">
  <xs:annotation>
    <xs:documentation>Specification of the property measured</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="AAD">
        <xs:annotation>
          <xs:documentation>Total gross weight. Mass of the item, including packing but excluding the carrier's equipment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ABJ">
        <xs:annotation>
          <xs:documentation>Volume. the amount of air space taken up by the entity</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="T">
        <xs:annotation>
          <xs:documentation>Tare weight, excluding goods and loose accessories</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasureUnitQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration KGM
annotation
documentation 
Indication of the unit in which the measured quantity is expressed
source
<xs:element name="MeasureUnitQualifier">
  <xs:annotation>
    <xs:documentation>Indication of the unit in which the measured quantity is expressed</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="KGM">
        <xs:annotation>
          <xs:documentation>Kilogram</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasurementValue
diagram
type restriction of string1..18
properties
isRef 0
content simple
facets
minLength 1
maxLength 18
annotation
documentation 
Value of the measured quantity
source
<xs:element name="MeasurementValue">
  <xs:annotation>
    <xs:documentation>Value of the measured quantity</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..18"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/NumberOfUnits
diagram
properties
isRef 0
content complex
children NumberOfUnits
annotation
documentation 
EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.
source
<xs:element name="NumberOfUnits" minOccurs="0">
  <xs:annotation>
    <xs:documentation>EQN - A segment to specify the number of equipment units to each of which the given measurement applies. Only provided for backward compatibility.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="NumberOfUnits" type="string0..17">
        <xs:annotation>
          <xs:documentation>Number of units</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/NumberOfUnits/NumberOfUnits
diagram
type string0..17
properties
isRef 0
content simple
facets
minLength 0
maxLength 17
annotation
documentation 
Number of units
source
<xs:element name="NumberOfUnits" type="string0..17">
  <xs:annotation>
    <xs:documentation>Number of units</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails
diagram
properties
isRef 0
content complex
children EquipmentQualifier EquipmentIdentificationNumber EquipmentSizeAndType CodeListQualifier CodeListResponsibleAgency FullEmptyIndicator Measurements SealNumber
annotation
documentation 
EQD - An element to specify equipment, equipment size and type used in transport
source
<xs:element name="EquipmentDetails" minOccurs="0" maxOccurs="999">
  <xs:annotation>
    <xs:documentation>EQD - An element to specify equipment, equipment size and type used in transport</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="EquipmentQualifier">
        <xs:annotation>
          <xs:documentation>Code identifying the type of equipment</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="EquipmentIdentificationNumber">
        <xs:annotation>
          <xs:documentation>Marks (letters or numbers) identifying the equipment used for transport</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..17"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="EquipmentSizeAndType">
        <xs:annotation>
          <xs:documentation>Code and/or name identifying size and type of the equipment used</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..10"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListQualifier">
        <xs:annotation>
          <xs:documentation>Identification of a code list.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="102">
              <xs:annotation>
                <xs:documentation>Empty</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="CodeListResponsibleAgency">
        <xs:annotation>
          <xs:documentation>Code identifying the agency responsible for a code list.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="5"/>
            <xs:enumeration value="6">
              <xs:annotation>
                <xs:documentation>Empty</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="FullEmptyIndicator">
        <xs:annotation>
          <xs:documentation>To indicate the extent of the equipment being full or empty</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="4">
              <xs:annotation>
                <xs:documentation>Empty</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="5">
              <xs:annotation>
                <xs:documentation>Full</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="7">
              <xs:annotation>
                <xs:documentation>Full, mixed consignment</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="8">
              <xs:annotation>
                <xs:documentation>Full, single consignment</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Measurements">
        <xs:annotation>
          <xs:documentation>MEA - An element to specify measurements, other than dimensions, associated with the equipment.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="MeasurementPurposeQualifier">
              <xs:annotation>
                <xs:documentation>Specification of the purpose of the measurement</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="WT">
                    <xs:annotation>
                      <xs:documentation>Weights</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="PropertyMeasured">
              <xs:annotation>
                <xs:documentation>Specification of the property being measured</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="T">
                    <xs:annotation>
                      <xs:documentation>Tare weight</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasureUnitQualifier">
              <xs:annotation>
                <xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3">
                  <xs:enumeration value="KGM">
                    <xs:annotation>
                      <xs:documentation>Kilogram</xs:documentation>
                    </xs:annotation>
                  </xs:enumeration>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="MeasurementValue">
              <xs:annotation>
                <xs:documentation>Value of the measured unit</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..18"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SealNumber" minOccurs="0" maxOccurs="6">
        <xs:annotation>
          <xs:documentation>SEL - An element to identify the the seal and the seal issuer associated with the equipment</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="SealNumber">
              <xs:annotation>
                <xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..10"/>
              </xs:simpleType>
            </xs:element>
            <xs:element name="SealingPartyCoded" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Identification of the issuer of the seal number</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="string1..3"/>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Code identifying the type of equipment
source
<xs:element name="EquipmentQualifier">
  <xs:annotation>
    <xs:documentation>Code identifying the type of equipment</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentIdentificationNumber
diagram
type restriction of string1..17
properties
isRef 0
content simple
facets
minLength 1
maxLength 17
annotation
documentation 
Marks (letters or numbers) identifying the equipment used for transport
source
<xs:element name="EquipmentIdentificationNumber">
  <xs:annotation>
    <xs:documentation>Marks (letters or numbers) identifying the equipment used for transport</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..17"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentSizeAndType
diagram
type restriction of string1..10
properties
isRef 0
content simple
facets
minLength 1
maxLength 10
annotation
documentation 
Code and/or name identifying size and type of the equipment used
source
<xs:element name="EquipmentSizeAndType">
  <xs:annotation>
    <xs:documentation>Code and/or name identifying size and type of the equipment used</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..10"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/CodeListQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 102
annotation
documentation 
Identification of a code list.
source
<xs:element name="CodeListQualifier">
  <xs:annotation>
    <xs:documentation>Identification of a code list.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="102">
        <xs:annotation>
          <xs:documentation>Empty</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/CodeListResponsibleAgency
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 5
enumeration 6
annotation
documentation 
Code identifying the agency responsible for a code list.
source
<xs:element name="CodeListResponsibleAgency">
  <xs:annotation>
    <xs:documentation>Code identifying the agency responsible for a code list.</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="5"/>
      <xs:enumeration value="6">
        <xs:annotation>
          <xs:documentation>Empty</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/FullEmptyIndicator
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 4
enumeration 5
enumeration 7
enumeration 8
annotation
documentation 
To indicate the extent of the equipment being full or empty
source
<xs:element name="FullEmptyIndicator">
  <xs:annotation>
    <xs:documentation>To indicate the extent of the equipment being full or empty</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="4">
        <xs:annotation>
          <xs:documentation>Empty</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="5">
        <xs:annotation>
          <xs:documentation>Full</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="7">
        <xs:annotation>
          <xs:documentation>Full, mixed consignment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="8">
        <xs:annotation>
          <xs:documentation>Full, single consignment</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements
diagram
properties
isRef 0
content complex
children MeasurementPurposeQualifier PropertyMeasured MeasureUnitQualifier MeasurementValue
annotation
documentation 
MEA - An element to specify measurements, other than dimensions, associated with the equipment.
source
<xs:element name="Measurements">
  <xs:annotation>
    <xs:documentation>MEA - An element to specify measurements, other than dimensions, associated with the equipment.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="MeasurementPurposeQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the purpose of the measurement</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="WT">
              <xs:annotation>
                <xs:documentation>Weights</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="PropertyMeasured">
        <xs:annotation>
          <xs:documentation>Specification of the property being measured</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="T">
              <xs:annotation>
                <xs:documentation>Tare weight</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasureUnitQualifier">
        <xs:annotation>
          <xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="KGM">
              <xs:annotation>
                <xs:documentation>Kilogram</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="MeasurementValue">
        <xs:annotation>
          <xs:documentation>Value of the measured unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..18"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasurementPurposeQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration WT
annotation
documentation 
Specification of the purpose of the measurement
source
<xs:element name="MeasurementPurposeQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the purpose of the measurement</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="WT">
        <xs:annotation>
          <xs:documentation>Weights</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/PropertyMeasured
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration T
annotation
documentation 
Specification of the property being measured
source
<xs:element name="PropertyMeasured">
  <xs:annotation>
    <xs:documentation>Specification of the property being measured</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="T">
        <xs:annotation>
          <xs:documentation>Tare weight</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasureUnitQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration KGM
annotation
documentation 
Indication of the unit in which the quantity is expressed
source
<xs:element name="MeasureUnitQualifier">
  <xs:annotation>
    <xs:documentation>Indication of the unit in which the quantity is expressed</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="KGM">
        <xs:annotation>
          <xs:documentation>Kilogram</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasurementValue
diagram
type restriction of string1..18
properties
isRef 0
content simple
facets
minLength 1
maxLength 18
annotation
documentation 
Value of the measured unit
source
<xs:element name="MeasurementValue">
  <xs:annotation>
    <xs:documentation>Value of the measured unit</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..18"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/SealNumber
diagram
properties
isRef 0
content complex
children SealNumber SealingPartyCoded
annotation
documentation 
SEL - An element to identify the the seal and the seal issuer associated with the equipment
source
<xs:element name="SealNumber" minOccurs="0" maxOccurs="6">
  <xs:annotation>
    <xs:documentation>SEL - An element to identify the the seal and the seal issuer associated with the equipment</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="SealNumber">
        <xs:annotation>
          <xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..10"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="SealingPartyCoded" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Identification of the issuer of the seal number</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3"/>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/SealNumber/SealNumber
diagram
type restriction of string1..10
properties
isRef 0
content simple
facets
minLength 1
maxLength 10
annotation
documentation 
The number of a custom or another type of seal affixed to the container or other transport unit
source
<xs:element name="SealNumber">
  <xs:annotation>
    <xs:documentation>The number of a custom or another type of seal affixed to the container or other transport unit</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..10"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/ConsignmentInformation/EquipmentDetails/SealNumber/SealingPartyCoded
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
annotation
documentation 
Identification of the issuer of the seal number
source
<xs:element name="SealingPartyCoded" minOccurs="0">
  <xs:annotation>
    <xs:documentation>Identification of the issuer of the seal number</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3"/>
  </xs:simpleType>
</xs:element>

element ManifestMessage/MessageTrailler
diagram
properties
isRef 0
content complex
children NumberOfSegments MessageReferenceNumber
annotation
documentation 
UNT - A service element delimiting the end of the message and indicating the total number of segments and the control reference number of the message
source
<xs:element name="MessageTrailler">
  <xs:annotation>
    <xs:documentation>UNT - A service element delimiting the end of the message and indicating the total number of segments and the control reference number of the message</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="NumberOfSegments" type="decimal6">
        <xs:annotation>
          <xs:documentation>Control count of the segments in the message</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="MessageReferenceNumber" type="string1..14">
        <xs:annotation>
          <xs:documentation>Unique message reference number assigned by the sender</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ManifestMessage/MessageTrailler/NumberOfSegments
diagram
type decimal6
properties
isRef 0
content simple
facets
totalDigits 6
annotation
documentation 
Control count of the segments in the message
source
<xs:element name="NumberOfSegments" type="decimal6">
  <xs:annotation>
    <xs:documentation>Control count of the segments in the message</xs:documentation>
  </xs:annotation>
</xs:element>

element ManifestMessage/MessageTrailler/MessageReferenceNumber
diagram
type string1..14
properties
isRef 0
content simple
facets
minLength 1
maxLength 14
annotation
documentation 
Unique message reference number assigned by the sender
source
<xs:element name="MessageReferenceNumber" type="string1..14">
  <xs:annotation>
    <xs:documentation>Unique message reference number assigned by the sender</xs:documentation>
  </xs:annotation>
</xs:element>

element ReferenceDateTimePeriod
diagram
properties
content complex
children DateTimePeriodQualifier DateTimePeriod DateTimePeriodFormatQualifier
used by
elements ManifestMessage/Reference ManifestMessage/ConsignmentInformation/Reference ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference
annotation
documentation 
DTM - Element to indicate the date/time of a reference
source
<xs:element name="ReferenceDateTimePeriod">
  <xs:annotation>
    <xs:documentation>DTM - Element to indicate the date/time of a reference</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="DateTimePeriodQualifier">
        <xs:annotation>
          <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="171">
              <xs:annotation>
                <xs:documentation>Reference Date/Time</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriod">
        <xs:annotation>
          <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..35"/>
        </xs:simpleType>
      </xs:element>
      <xs:element name="DateTimePeriodFormatQualifier">
        <xs:annotation>
          <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="string1..3">
            <xs:enumeration value="203">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="303">
              <xs:annotation>
                <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element ReferenceDateTimePeriod/DateTimePeriodQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 171
annotation
documentation 
Code giving specific meaning to a date, time or period
source
<xs:element name="DateTimePeriodQualifier">
  <xs:annotation>
    <xs:documentation>Code giving specific meaning to a date, time or period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="171">
        <xs:annotation>
          <xs:documentation>Reference Date/Time</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

element ReferenceDateTimePeriod/DateTimePeriod
diagram
type restriction of string1..35
properties
isRef 0
content simple
facets
minLength 1
maxLength 35
annotation
documentation 
The value of a date, a date and a tiem, a time or a period, in a specified representation
source
<xs:element name="DateTimePeriod">
  <xs:annotation>
    <xs:documentation>The value of a date, a date and a tiem, a time or a period, in a specified representation</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..35"/>
  </xs:simpleType>
</xs:element>

element ReferenceDateTimePeriod/DateTimePeriodFormatQualifier
diagram
type restriction of string1..3
properties
isRef 0
content simple
facets
minLength 1
maxLength 3
enumeration 203
enumeration 303
annotation
documentation 
Specification of the representation of a date, date and time or a period
source
<xs:element name="DateTimePeriodFormatQualifier">
  <xs:annotation>
    <xs:documentation>Specification of the representation of a date, date and time or a period</xs:documentation>
  </xs:annotation>
  <xs:simpleType>
    <xs:restriction base="string1..3">
      <xs:enumeration value="203">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMM

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="303">
        <xs:annotation>
          <xs:documentation>CCYYMMDDHHMMZZZ

Calendar dae including time in minutes:
C= Century
Y= Year
M= Month
D= Day
H= Hour
M= Minutes
Z= Time zone</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

simpleType decimal12
type restriction of xs:integer
facets
totalDigits 12
source
<xs:simpleType name="decimal12">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="12"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal15
type restriction of xs:integer
facets
totalDigits 15
source
<xs:simpleType name="decimal15">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="15"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal18
type restriction of xs:integer
used by
elements ManifestMessage/ControlTotal/ControlValue ManifestMessage/ConsignmentInformation/ControlTotal/ControlValue
facets
totalDigits 18
source
<xs:simpleType name="decimal18">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="18"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal2
type restriction of xs:integer
facets
totalDigits 2
source
<xs:simpleType name="decimal2">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="2"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal3
type restriction of xs:integer
facets
totalDigits 3
source
<xs:simpleType name="decimal3">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="3"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal4
type restriction of xs:integer
used by
element ManifestMessage/ConsignmentInformation/ConsolidationItemNumber
facets
totalDigits 4
source
<xs:simpleType name="decimal4">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="4"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal5
type restriction of xs:integer
used by
element ManifestMessage/ConsignmentInformation/GoodsItemDetails/GoodsItemNumber
facets
totalDigits 5
source
<xs:simpleType name="decimal5">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="5"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal6
type restriction of xs:integer
used by
element ManifestMessage/MessageTrailler/NumberOfSegments
facets
totalDigits 6
source
<xs:simpleType name="decimal6">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="6"/>
  </xs:restriction>
</xs:simpleType>

simpleType decimal8
type restriction of xs:integer
used by
elements ManifestMessage/ConsignmentInformation/GoodsItemDetails/NumberOfPackages ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/NumberOfPackages
facets
totalDigits 8
source
<xs:simpleType name="decimal8">
  <xs:restriction base="xs:integer">
    <xs:totalDigits value="8"/>
  </xs:restriction>
</xs:simpleType>

simpleType integer1..n
type xs:integer
source
<xs:simpleType name="integer1..n">
  <xs:restriction base="xs:integer"/>
</xs:simpleType>

simpleType string0..1
type restriction of xs:string
facets
minLength 0
maxLength 1
source
<xs:simpleType name="string0..1">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="1"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..10
type restriction of xs:string
facets
minLength 0
maxLength 10
source
<xs:simpleType name="string0..10">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="10"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..17
type restriction of xs:string
used by
element ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/NumberOfUnits/NumberOfUnits
facets
minLength 0
maxLength 17
source
<xs:simpleType name="string0..17">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="17"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..18
type restriction of xs:string
facets
minLength 0
maxLength 18
source
<xs:simpleType name="string0..18">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="18"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..25
type restriction of xs:string
facets
minLength 0
maxLength 25
source
<xs:simpleType name="string0..25">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="25"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..26
type restriction of xs:string
facets
minLength 0
maxLength 26
source
<xs:simpleType name="string0..26">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="26"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..3
type restriction of xs:string
facets
minLength 0
maxLength 3
source
<xs:simpleType name="string0..3">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="3"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..35
type restriction of xs:string
facets
minLength 0
maxLength 35
source
<xs:simpleType name="string0..35">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="35"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..4
type restriction of xs:string
facets
minLength 0
maxLength 4
source
<xs:simpleType name="string0..4">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="4"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..6
type restriction of xs:string
facets
minLength 0
maxLength 6
source
<xs:simpleType name="string0..6">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="6"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..7
type restriction of xs:string
facets
minLength 0
maxLength 7
source
<xs:simpleType name="string0..7">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="7"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..70
type restriction of xs:string
facets
minLength 0
maxLength 70
source
<xs:simpleType name="string0..70">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="70"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..8
type restriction of xs:string
facets
minLength 0
maxLength 8
source
<xs:simpleType name="string0..8">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="8"/>
  </xs:restriction>
</xs:simpleType>

simpleType string0..9
type restriction of xs:string
facets
minLength 0
maxLength 9
source
<xs:simpleType name="string0..9">
  <xs:restriction base="xs:string">
    <xs:minLength value="0"/>
    <xs:maxLength value="9"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..10
type restriction of xs:string
used by
elements ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentSizeAndType ManifestMessage/ConsignmentInformation/EquipmentDetails/SealNumber/SealNumber
facets
minLength 1
maxLength 10
source
<xs:simpleType name="string1..10">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="10"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..14
type restriction of xs:string
used by
elements ManifestMessage/MessageHeader/MessageReferenceNumber ManifestMessage/MessageTrailler/MessageReferenceNumber
facets
minLength 1
maxLength 14
source
<xs:simpleType name="string1..14">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="14"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..15
type restriction of xs:string
facets
minLength 1
maxLength 15
source
<xs:simpleType name="string1..15">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="15"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..17
type restriction of xs:string
used by
elements ManifestMessage/TransportDetails/ConveyanceReferenceNumber ManifestMessage/NameAndAddress/ContactInformation/DepartmentEmployeeIdentification ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/EquipmentIdentificationNumber ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentIdentificationNumber ManifestMessage/ConsignmentInformation/GoodsItemDetails/TypeOfPackagesIdentification
facets
minLength 1
maxLength 17
source
<xs:simpleType name="string1..17">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="17"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..18
type restriction of xs:string
used by
elements ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasurementValue ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasurementValue ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasurementValue ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/MonetaryAmountQTY
facets
minLength 1
maxLength 18
source
<xs:simpleType name="string1..18">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="18"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..2
type restriction of xs:string
used by
element ManifestMessage/MessageHeader/ControlingAgency
facets
minLength 1
maxLength 2
source
<xs:simpleType name="string1..2">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="2"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..25
type restriction of xs:string
used by
elements ManifestMessage/TransportDetails/LocationIdentification/PlaceLocationIdentification ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocationIdentification ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocationIdentification ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/RelatedPlaceLocationIdentification
facets
minLength 1
maxLength 25
source
<xs:simpleType name="string1..25">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="25"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..3
type restriction of xs:string
used by
elements ManifestMessage/ConsignmentInformation/EquipmentDetails/CodeListQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/CodeListQualifier ManifestMessage/TransportDetails/CodeListQualifier ManifestMessage/ConsignmentInformation/LocationIdentification/CodeListQualifier ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/CodeListQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/CodeListQualifier ManifestMessage/TransportDetails/LocationIdentification/CodeListQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/CodeListQualifier ManifestMessage/NameAndAddress/CodeListQualifier ManifestMessage/ConsignmentInformation/EquipmentDetails/CodeListResponsibleAgency ManifestMessage/TransportDetails/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/CodeListResponsibleAgency ManifestMessage/NameAndAddress/CodeListResponsibleAgency ManifestMessage/TransportDetails/LocationIdentification/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/LocationIdentification/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/CodeListResponsibleAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/NatureOfCargo/CodeListResponsibleAgency ManifestMessage/NameAndAddress/ContactInformation/CommunicationContact/CommunicationChannelQualifier ManifestMessage/NameAndAddress/ContactInformation/ContactFunction ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/ContainerPackageStatus ManifestMessage/ConsignmentInformation/ControlTotal/ControlQualifier ManifestMessage/ControlTotal/ControlQualifier ManifestMessage/NameAndAddress/Country ManifestMessage/ConsignmentInformation/NameAndAddress/Country ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/Country ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/CurrencyCoded ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriodFormatQualifier ReferenceDateTimePeriod/DateTimePeriodFormatQualifier ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriodFormatQualifier DateTimePeriod/DateTimePeriodFormatQualifier ManifestMessage/DateTimePeriod/DateTimePeriodFormatQualifier ReferenceDateTimePeriod/DateTimePeriodQualifier ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriodQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriodQualifier ManifestMessage/DateTimePeriod/DateTimePeriodQualifier DateTimePeriod/DateTimePeriodQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DocumentMessageName ManifestMessage/ConsignmentInformation/DocumentMessageStatus ManifestMessage/BeginningOfMessage/DocumentName ManifestMessage/ConsignmentInformation/EquipmentDetails/EquipmentQualifier ManifestMessage/ConsignmentInformation/EquipmentDetails/FullEmptyIndicator ManifestMessage/GovernmentalRequirements/GovernmentAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/GovernmentAgency ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ItemNumberType ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText/LanguageCoded ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText/LanguageCoded ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/MarkingInstructions ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasurementPurposeQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasurementPurposeQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasurementPurposeQualifier ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/MeasureUnitQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/MeasureUnitQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/MeasureUnitQualifier ManifestMessage/ConsignmentInformation/ControlTotal/MeasureUnitQualifier ManifestMessage/BeginningOfMessage/MessageFunction ManifestMessage/MessageHeader/MessageTypeReleaseNumber ManifestMessage/MessageHeader/MessageTypeVersionNumber ManifestMessage/TransportDetails/ModeOfTransport ManifestMessage/ConsignmentInformation/DetailsOfTransport/ModeOfTransport ManifestMessage/ConsignmentInformation/GoodsItemDetails/MonetaryAmount/MonetaryAmountTypeQualifier ManifestMessage/TransportDetails/NationalityOfMeansOfTransport ManifestMessage/ConsignmentInformation/GoodsItemDetails/NatureOfCargo/NatureOfCargo ManifestMessage/NameAndAddress/PartyQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyQualifier ManifestMessage/ConsignmentInformation/NameAndAddress/PartyQualifier ManifestMessage/TransportDetails/LocationIdentification/PlaceLocationQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocationQualifier ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocationQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ProductId ManifestMessage/ConsignmentInformation/GoodsItemDetails/SplitGoodsPlacement/Measurements/PropertyMeasured ManifestMessage/ConsignmentInformation/GoodsItemDetails/Measurements/PropertyMeasured ManifestMessage/ConsignmentInformation/EquipmentDetails/Measurements/PropertyMeasured ManifestMessage/ConsignmentInformation/Reference/ReferenceQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference/ReferenceQualifier ManifestMessage/Reference/ReferenceQualifier ManifestMessage/ConsignmentInformation/EquipmentDetails/SealNumber/SealingPartyCoded ManifestMessage/ConsignmentInformation/ConsignmentFreeText/TextSubjectQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/FreeText/TextSubjectQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/FreeText/TextSubjectQualifier ManifestMessage/FreeText/TextSubjectQualifier ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/TransportMovement ManifestMessage/GovernmentalRequirements/TransportMovement ManifestMessage/ConsignmentInformation/DetailsOfTransport/TransportStageQualifier ManifestMessage/TransportDetails/TransportStageQualifier
facets
minLength 1
maxLength 3
source
<xs:simpleType name="string1..3">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="3"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..35
type restriction of xs:string
used by
elements ReferenceDateTimePeriod/DateTimePeriod ManifestMessage/DateTimePeriod/DateTimePeriod DateTimePeriod/DateTimePeriod ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DateTimePeriod/DateTimePeriod ManifestMessage/TransportDetails/DateTimePeriod/DateTimePeriod ManifestMessage/NameAndAddress/ContactInformation/DepartmentEmployee ManifestMessage/ConsignmentInformation/GoodsItemDetails/GovernmentalRequirements/DocumentDetails/DocumentMessageNumber ManifestMessage/ConsignmentInformation/DocumentMessageNumber ManifestMessage/BeginningOfMessage/DocumentNumber ManifestMessage/TransportDetails/IdOfTheMeansOfTransport ManifestMessage/ConsignmentInformation/GoodsItemDetails/AdditionalProductID/ItemNumber ManifestMessage/NameAndAddress/NameAndAddress ManifestMessage/ConsignmentInformation/NameAndAddress/PartyIdentificationDetails/PartyId ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PartyIdentificationDetails/PartyId ManifestMessage/NameAndAddress/PartyId ManifestMessage/ConsignmentInformation/Reference/ReferenceNumber ManifestMessage/ConsignmentInformation/GoodsItemDetails/Reference/ReferenceNumber ManifestMessage/Reference/ReferenceNumber ManifestMessage/ConsignmentInformation/GoodsItemDetails/TypeOfPackages
facets
minLength 1
maxLength 35
source
<xs:simpleType name="string1..35">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="35"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..350
type restriction of xs:string
used by
elements ManifestMessage/ConsignmentInformation/NameAndAddress/FreeNameAndAddress FreeTextNode ManifestMessage/ConsignmentInformation/GoodsItemDetails/PackageIdentification/ShippingMarks
facets
minLength 1
maxLength 350
source
<xs:simpleType name="string1..350">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="350"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..512
type restriction of xs:string
used by
elements ManifestMessage/NameAndAddress/ContactInformation/CommunicationContact/CommunicationNumber ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/FreeNameAndAddress
facets
minLength 1
maxLength 512
source
<xs:simpleType name="string1..512">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="512"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..6
type restriction of xs:string
used by
elements ManifestMessage/MessageHeader/AssociationAssignedCode ManifestMessage/MessageHeader/MessageTypeIdentifier
facets
minLength 1
maxLength 6
source
<xs:simpleType name="string1..6">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="6"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..70
type restriction of xs:string
used by
elements ManifestMessage/TransportDetails/LocationIdentification/PlaceLocation ManifestMessage/ConsignmentInformation/LocationIdentification/PlaceLocation ManifestMessage/ConsignmentInformation/GoodsItemDetails/LocationIdentification/PlaceLocation
facets
minLength 1
maxLength 70
source
<xs:simpleType name="string1..70">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="70"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..8
type restriction of xs:string
facets
minLength 1
maxLength 8
source
<xs:simpleType name="string1..8">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="8"/>
  </xs:restriction>
</xs:simpleType>

simpleType string1..9
type restriction of xs:string
used by
elements ManifestMessage/ConsignmentInformation/NameAndAddress/CityName ManifestMessage/ConsignmentInformation/NameAndAddress/CountrySubentityIdentification ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/CountrySubentityIdentification ManifestMessage/TransportDetails/MeansOfTransportIMONumber ManifestMessage/ConsignmentInformation/NameAndAddress/PostcodeIdentification ManifestMessage/ConsignmentInformation/GoodsItemDetails/NameAndAddress/PostcodeIdentification
facets
minLength 1
maxLength 9
source
<xs:simpleType name="string1..9">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:maxLength value="9"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XMLSpy Schema Editor http://www.altova.com/xmlspy