<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xs:element name="PT511C">
  <xs:annotation>
    <xs:documentation> ; Envelope da Mensagem; O; </xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="messageSender">
        <xs:annotation>
          <xs:documentation> ; Emissor (Sender); O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageRecipient">
        <xs:annotation>
          <xs:documentation> ; Recetor; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="preparationDateAndTime">
        <xs:annotation>
          <xs:documentation> ; Data e hora de preparação; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="19"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageIdentification">
        <xs:annotation>
          <xs:documentation> ; Identificação da mensagem; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="messageType">
        <xs:annotation>
          <xs:documentation> ; Tipo de mensagem; O; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:length value="6"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="correlationIdentifier" minOccurs="0">
        <xs:annotation>
          <xs:documentation> ; Identificador de correlação; C; </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="35"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="ExportOperation">
        <xs:annotation>
          <xs:documentation> ; Operação de exportação; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LRN">
              <xs:annotation>
                <xs:documentation>12 09 000 000 ; NRL; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="22"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomsOfficeOfPresentation" minOccurs="0">
        <xs:annotation>
          <xs:documentation>17 09 000 000 ; Estância aduaneira de apresentação; C; Para utilizar no âmbito do Desalfandegamento Centralizado.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="referenceNumber">
              <xs:annotation>
                <xs:documentation>17 09 001 000 ; N.º de referência; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CustomsOfficeOfExport">
        <xs:annotation>
          <xs:documentation>17 02 000 000 ; Estância aduaneira de exportação; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="referenceNumber">
              <xs:annotation>
                <xs:documentation>17 02 001 000 ; N.º de referência; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SupervisingCustomsOffice" minOccurs="0">
        <xs:annotation>
          <xs:documentation>17 10 000 000 ; Estância aduaneira de controlo; C; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="referenceNumber">
              <xs:annotation>
                <xs:documentation>17 10 001 000 ; N.º de referência; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Declarant">
        <xs:annotation>
          <xs:documentation>13 05 000 000 ; Declarante; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="identificationNumber" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 017 000 ; N.º de identificação; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="name" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 016 000 ; Nome; C; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="Address" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 018 000 ; Endereço; C; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="streetAndNumber">
                    <xs:annotation>
                      <xs:documentation>13 05 018 019 ; Rua e n.º; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="postcode" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 05 018 021 ; Código postal; C; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="city">
                    <xs:annotation>
                      <xs:documentation>13 05 018 022 ; Localidade; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="country">
                    <xs:annotation>
                      <xs:documentation>13 05 018 020 ; País; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ContactPerson" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 05 074 000 ; Pessoa de contacto; F; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="name">
                    <xs:annotation>
                      <xs:documentation>13 05 074 016 ; Nome; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="phoneNumber">
                    <xs:annotation>
                      <xs:documentation>13 05 074 075 ; N.º de telefone; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="eMailAddress" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 05 074 076 ; Endereço eletrónico; F; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="256"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="Representative" minOccurs="0">
        <xs:annotation>
          <xs:documentation>13 06 000 000 ; Representante; C; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="identificationNumber">
              <xs:annotation>
                <xs:documentation>13 06 017 000 ; N.º de identificação; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="status">
              <xs:annotation>
                <xs:documentation>13 06 030 000 ; Estatuto; O; </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:int">
                  <xs:totalDigits value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
            <xs:element name="ContactPerson" minOccurs="0">
              <xs:annotation>
                <xs:documentation>13 06 074 000 ; Pessoa de contacto; F; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="name">
                    <xs:annotation>
                      <xs:documentation>13 06 074 016 ; Nome; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="phoneNumber">
                    <xs:annotation>
                      <xs:documentation>13 06 074 075 ; N.º de telefone; O; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="eMailAddress" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>13 06 074 076 ; Endereço eletrónico; F; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="256"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="GoodsShipment">
        <xs:annotation>
          <xs:documentation> ; Remessa de mercadorias; O; </xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Consignment">
              <xs:annotation>
                <xs:documentation> ; Remessa; O; </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="containerIndicator" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>19 01 000 000 ; Indicador de contentor; C; Apenas pode assumir os seguintes valores: 
0 - Não 
1 - Sim</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:int">
                        <xs:totalDigits value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="inlandModeOfTransport" minOccurs="0">
                    <xs:annotation>
                      <xs:documentation>19 04 000 000 ; Modo de transporte interior; C; </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:int">
                        <xs:totalDigits value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="TransportEquipment" minOccurs="0" maxOccurs="9999">
                    <xs:annotation>
                      <xs:documentation>19 07 000 000 ; Equipamento de transporte; C; </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="sequenceNumber">
                          <xs:annotation>
                            <xs:documentation> ; N.º de sequência; O; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:int">
                              <xs:maxInclusive value="99999"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="containerIdentificationNumber" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>19 07 063 000 ; N.º de identificação do contentor; C; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="17"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="numberOfSeals">
                          <xs:annotation>
                            <xs:documentation>19 10 068 000 ; N.º de selos; O; Preencher apenas se no ED “Segurança” (11 07 000 000) constar o código 2 [DAE+DSS (dados de segurança)]</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:int">
                              <xs:maxInclusive value="9999"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="Seal" minOccurs="0" maxOccurs="99">
                          <xs:annotation>
                            <xs:documentation>19 10 000 000 ; Selos; C; Preencher apenas se no ED “Segurança” (11 07 000 000) constar o código 2 [DAE+DSS (dados de segurança)]</xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="sequenceNumber">
                                <xs:annotation>
                                  <xs:documentation> ; N.º de sequência; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:int">
                                    <xs:maxInclusive value="99999"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="identifier">
                                <xs:annotation>
                                  <xs:documentation>19 10 015 000 ; Identificador; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="20"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="GoodsReference" minOccurs="0" maxOccurs="999">
                          <xs:annotation>
                            <xs:documentation> ; Referência das mercadorias; C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="sequenceNumber">
                                <xs:annotation>
                                  <xs:documentation> ; N.º de sequência; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:int">
                                    <xs:maxInclusive value="99999"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="declarationGoodsItemNumber">
                                <xs:annotation>
                                  <xs:documentation>19 07 044 000 ; Referência das mercadorias (n.º da adição); O; O número indicado tem de corresponder a um número de adição existente ao nível da declaração (11 03 000 000).</xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:int">
                                    <xs:maxInclusive value="99999"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="LocationOfGoods">
                    <xs:annotation>
                      <xs:documentation>16 15 000 000 ; Localização das mercadorias; O; </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="typeOfLocation">
                          <xs:annotation>
                            <xs:documentation>16 15 045 000 ; Tipo de localização; O; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:length value="1"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="qualifierOfIdentification">
                          <xs:annotation>
                            <xs:documentation>16 15 046 000 ; Qualificador de identificação; O; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:length value="1"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="authorisationNumber" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 052 000 ; N.º da autorização; C; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="35"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="additionalIdentifier" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 053 000 ; Identificador adicional; C; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="4"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="UNLocode" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 036 000 ; UN/LOCODE; C; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="17"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="CustomsOffice" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 047 000 ; Estância aduaneira; C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="referenceNumber">
                                <xs:annotation>
                                  <xs:documentation>16 15 047 001 ; N.º de referência; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:length value="8"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="GNSS" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 048 000 ; GNSS; C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="latitude">
                                <xs:annotation>
                                  <xs:documentation>16 15 048 049 ; Latitude; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="longitude">
                                <xs:annotation>
                                  <xs:documentation>16 15 048 050 ; Longitude; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="EconomicOperator" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 051 000 ; Operador económico; C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="identificationNumber">
                                <xs:annotation>
                                  <xs:documentation>16 15 051 017 ; N.º de identificação; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="Address" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 018 000 ; Endereço; C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="streetAndNumber">
                                <xs:annotation>
                                  <xs:documentation>16 15 018 019 ; Rua e n.º; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="70"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="postcode" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>16 15 018 021 ; Código postal; C; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="city">
                                <xs:annotation>
                                  <xs:documentation>16 15 018 022 ; Localidade; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="35"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="country">
                                <xs:annotation>
                                  <xs:documentation>16 15 018 020 ; País; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:length value="2"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="PostcodeAddress" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 081 000 ; Endereço (Código postal); C; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="houseNumber" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>16 15 081 025 ; N.º da porta; C; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="postcode">
                                <xs:annotation>
                                  <xs:documentation>16 15 081 021 ; Código postal; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="17"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="country">
                                <xs:annotation>
                                  <xs:documentation>16 15 081 020 ; País; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:length value="2"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                        <xs:element name="ContactPerson" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>16 15 074 000 ; Pessoa de contacto; F; </xs:documentation>
                          </xs:annotation>
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="name">
                                <xs:annotation>
                                  <xs:documentation>16 15 074 016 ; Nome; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="70"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="phoneNumber">
                                <xs:annotation>
                                  <xs:documentation>16 15 074 075 ; N.º de telefone; O; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="35"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                              <xs:element name="eMailAddress" minOccurs="0">
                                <xs:annotation>
                                  <xs:documentation>16 15 074 076 ; Endereço eletrónico; F; </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                  <xs:restriction base="xs:string">
                                    <xs:maxLength value="256"/>
                                  </xs:restriction>
                                </xs:simpleType>
                              </xs:element>
                            </xs:sequence>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                  <xs:element name="DepartureTransportMeans" minOccurs="0" maxOccurs="999">
                    <xs:annotation>
                      <xs:documentation>19 05 000 000 ; Meio de transporte à partida; C; </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="sequenceNumber">
                          <xs:annotation>
                            <xs:documentation> ; N.º de sequência; O; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:int">
                              <xs:maxInclusive value="99999"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="typeOfIdentification" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>19 05 061 000 ; Tipo de identificação; F; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:int">
                              <xs:totalDigits value="2"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="identificationNumber">
                          <xs:annotation>
                            <xs:documentation>19 05 017 000 ; N.º de identificação; O; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="35"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:element>
                        <xs:element name="nationality" minOccurs="0">
                          <xs:annotation>
                            <xs:documentation>19 05 062 000 ; Nacionalidade; F; </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:length value="2"/>
                            </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:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>
