<?xml version="1.0" encoding="utf-8"?>
<!-- Schema: FORM E ESS -->
<!-- Updated: 17-05-2564 -->
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://edi.dft.go.th/schema/asw/FormE_ESS.xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://edi.dft.go.th/schema/asw/FormE_ESS.xsd"
  elementFormDefault="qualified" attributeFormDefault="unqualified"
  xmlns:ns="http://edi.dft.go.th/schema/asw/BaseType.xsd">
  <xs:import namespace="http://edi.dft.go.th/schema/asw/BaseType.xsd" schemaLocation="BaseType.xsd" />
  <xs:element name="FormE_ESS">
    <xs:complexType>
      <xs:sequence>
        <!-- ข้อมูลส่วนหลัก -->
        <xs:element name="FormE_ESSHeader">
          <xs:complexType>
            <xs:sequence>
              <!-- ข้อมูลช่องที่ 1 (ส่วนหลัก) -->
              <xs:element name="CompanyDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="card_id">
                      <xs:annotation>
                        <xs:documentation>บัตรประจำตัวกรรมการผู้มีอำนาจ/ผู้รับมอบอำนาจ เลขที่ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value="9"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="company_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Email</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="site_id" type="ns:Site_Code">
                      <xs:annotation>
                        <xs:documentation>รหัสสถานที่ที่จะขอออกฟอร์ม (ใช้รหัส ดูรายละเอียดได้จากรหัสสถานที่ Site_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="show_tax" minOccurs="1">
                      <xs:annotation>
                        <xs:documentation>แสดงเลขประจำตัวผู้เสียภาษีของผู้ขอในช่อง 1 หรือไม่ (0=ไม่แสดง,1=แสดง)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:unsignedInt">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 2 (ส่วนปลายทาง) -->
              <xs:element name="DestinationDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="destination_company">
                      <xs:annotation>
                        <xs:documentation>ชื่อบริษัทผู้ซื้อหรือผู้รับปลายทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_taxID" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>เลขประจำตัวผู้เสียภาษี</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="30"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_address">
                      <xs:annotation>
                        <xs:documentation>ที่อยู่</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_province">
                      <xs:annotation>
                        <xs:documentation>เมือง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_receive_country">
                      <xs:annotation>
                        <xs:documentation>ประเทศปลายทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_phone" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรศัพท์ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_fax" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="destination_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>e-mail</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 2 (ส่วนประเทศ) -->
              <xs:element name="DestinationDetailEDICountry">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="destination_country" type="ns:Country_List_FormE">
                      <xs:annotation>
                        <xs:documentation>ประเทศปลายทาง (ใช้รหัสประเทศปลายทาง ดูรายละเอียดได้จาก Country_List_FormE)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 3 (ส่วนยานพาหนะที่ส่งออก) -->
              <xs:element name="TransportDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ship_by" type="ns:Ship_Type">
                      <xs:annotation>
                        <xs:documentation>ยานพาหนะที่ส่งออก (0=เรือ,1=เครื่องบิน,2=ทางบก,3=ไปรษณีย์,4=นำติดตัว)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="transport_by">
                      <xs:annotation>
                        <xs:documentation>Means of transport and route (as far as known) เช่น BY SEA FREIGHT, BY TRUCK, BY AIR</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="departure_date">
                      <xs:annotation>
                        <xs:documentation>Departure date (รูปแบบใช้ ค.ศ. YYYYMMDD เช่น 20100129)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="8"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="vasel_name">
                      <xs:annotation>
                        <xs:documentation>Vessel's name / Aircraft etc</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="70"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_discharge" type="ns:LOCODE_ASEAN">
                      <xs:annotation>
                        <xs:documentation>
                          Port of Discharge ใช้รหัส Port ตามมาตรฐาน UN/LOCODE เช่น IDJKT = Jakarta, Java
                        </xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="port_name" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ชื่อ Port ที่ต้องการแสดงในหนังสือรับรองฯ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 4 (ส่วน gross weight และ Quantity) -->
              <xs:element name="WeightAndQuantity">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="currency_code" type="ns:Currency_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีต้องการใช้สกุลเงินอื่น นอกเหนือจาก USD ต้องระบุสกุลเงินอื่นด้วย (ดูรายละเอียดได้จากรหัสสกุลเงิน Currency_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="display_unit_type" default="GW" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>
                          เลือกแสดงค่า Gross Weight,Net Weight หรือปริมาณอื่นๆ ในช่อง 9 ของหนังสือรับรองฯ
                          GW = GROSS WEIGHT
                          NW = NET WEIGHT
                          QTY = OTHER QUANTITY
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="GW"/>
                          <xs:enumeration value="NW"/>
                          <xs:enumeration value="QTY"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="quantity1">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ ลำดับที่ 1</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code1" type="ns:Unit_Code">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity2" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริมาณ ลำดับที่ 2</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code2" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity3" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ปริปริมาณ ลำดับที่ 3</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="q_unit_code3" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="name_of_manufacturer" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Name of manufacturer, any trade mark shall also be specified.</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 5 (Invoice List) -->
              <xs:element name="Invoices">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="bill_type" type="ns:Bill_Type">
                      <xs:annotation>
                        <xs:documentation>ประเภทใบตราส่งสินค้า (B/L=0, AWB=1, ใบรับไปรษณีย์=2, อื่นๆ=3)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="bill_type_other" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รายละเอียดของอื่นๆ</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="bill_no">
                      <xs:annotation>
                        <xs:documentation>เลขที่ ใบตราส่งสินค้า (B/L หรือ AWB)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="bill_date">
                      <xs:annotation>
                        <xs:documentation>วันที่ ใบตราส่งสินค้า (B/L หรือ AWB) (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value="8"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="export_date" type="ns:Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ส่งออก (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <!---ข้อมูลเลขที่ Invoice (TH, Third Country)-->
                    <xs:element name="Invoice_Details">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="Display_Invoice" default="0" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>
                                เลือกประเภทใบกำกับสินค้า(invoice ) ที่ต้องการแสดงในช่อง 10 ของหนังสือรับรอง
                                -0 Invoice ไทย
                                -1 Invoice ต่างประเทศ
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="0"/>
                                <xs:enumeration value="1"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="TH_Invoices" minOccurs="1" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <!-- ข้อมูลรายการสินค้าและราคา -->
                                <xs:element name="InvoiceItem" minOccurs="1" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="InvoiceNo" minOccurs="1" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>เลขที่ Invoice</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                            <xs:maxLength value="50"/>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="InvoiceDate" type="ns:Date" minOccurs="1" maxOccurs="1">
                                        <xs:annotation>
                                          <xs:documentation>วันที่ออก Invoice  (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                                        </xs:annotation>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="ThirdParty_Invoices" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <!-- ข้อมูลรายการสินค้าและราคา -->
                                <xs:element name="InvoiceItem" minOccurs="0" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="InvoiceNo">
                                        <xs:annotation>
                                          <xs:documentation>เลขที่ Invoice</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                          <xs:restriction base="xs:string">
                                            <xs:maxLength value="50"/>
                                          </xs:restriction>
                                        </xs:simpleType>
                                      </xs:element>
                                      <xs:element name="InvoiceDate" type="ns:Date">
                                        <xs:annotation>
                                          <xs:documentation>วันที่ออก Invoice  (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</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>
              <!-- ข้อมูลช่องที่ 6 (เอกสารที่แนบประกอบการพิจารณา)  -->
              <xs:element name="AttachFile" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="attach_file">
                      <xs:annotation>
                        <xs:documentation>ข้อความอธิบายรายการเอกสารที่แนบประกอบการพิจารณา</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country_invoicing" default="0">
                      <xs:annotation>
                        <xs:documentation>Third-Country Invoicing (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country_info" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="company_name" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_country_invoicing เป็น 1 ให้ระบุชื่อบริษัท Invoice Third Country</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="company_address" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_country_invoicing เป็น 1 ให้ระบุที่อยู่ Invoice Third Country</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="country_code" type="ns:Country_List_All" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_country_invoicing เป็น 1 ให้ระบุรหัสประเทศ Invoice Third Country</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="back_to_back_co" default="0">
                      <xs:annotation>
                        <xs:documentation>Back-to-Back CO (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="back_country" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด back_to_back_co เป็น 1 ให้ระบุประเทศต้นทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="150"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="organization" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ระบุชื่อหน่วยงานที่ออกฟอร์มอีประเทศต้นทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100" />
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Exibition (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition_name" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด exibition เป็น 1 ให้ระบุชื่องาน</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition_place" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด exibition เป็น 1 ให้ระบุสถานที่จัดงาน</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition_country" type="ns:Country_List_All" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด exibition เป็น 1 ให้ระบุประเทศที่จัดงาน</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 7 (รับรอง) => 6/6/2011 ยกเลิกไม่ต้องส่งส่วนนี้เพราะระบบจะดึงข้อมูลมาให้อัตโนมัติ -->
              <xs:element name="CompanyEndorseDetail" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="factory">
                      <xs:annotation>
                        <xs:documentation>
                          (1) สินค้าตามรายการดังกล่าวข้างต้นเป็นสินค้าที่ผลิตและมีถิ่นกำเนิดในประเทศไทย โดยผลิต/ซื้อจาก ( โรงงาน/บริษัท/ห้าง/ร้าน )
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_taxid" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>เลขประจำตัวผู้เสียภาษี </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="30"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_address">
                      <xs:annotation>
                        <xs:documentation>ตั้งอยู่ที่</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_province">
                      <xs:annotation>
                        <xs:documentation>จังหวัด</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_country">
                      <xs:annotation>
                        <xs:documentation>ประเทศ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_phone" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรศัพท์  </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="factory_fax" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>โทรสาร </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลสำหรับบริษัทที่ต้องการออกหนังสือรับรอง แบบลงลายมือชื่อและตราประทับอิเล็กทรอนิกส์ (Electronic Signature and Seal) -->
              <xs:element name="SealSignSupported" minOccurs="1" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="SignRefID" type="xs:unsignedInt" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>รหัสอ้างอิงรูปภาพลายมือชื่อและตราประทับที่บันทึกไว้ในระบบเรียบร้อยแล้ว ซึ่งต้องการให้นำมาพิมพ์ลงในหนังสือรับรองฯ</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนรายการสินค้า และ การตรวจสอบต้นทุน -->
        <xs:element name="FormE_ESSDetail">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="FormE_ESSProduct" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <!-- ข้อมูลรายการสินค้าและราคา -->
                    <xs:element name="FormE_ESSDetailProduct">
                      <xs:complexType>
                        <xs:sequence>
                          <!-- product_title ใช้เฉพาะสำหรับกลุ่มอุตสาหกรรมรถยนต์เท่านั้น -->
                          <xs:element name="product_title" minOccurs="0" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>เฉพาะกลุ่มรถยนต์ => ข้อความ product title สำหรับแสดงก่อน HS.CODE พิกัดสินค้า (ใส่เฉพาะในลำดับที่รายการที่ต้องแสดงเท่านั้น)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="InvoiceNo" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>เลขที่ Invoice</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="InvoiceDate" type="ns:Date" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>วันที่ออก Invoice  (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="InvoiceItem" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>ลำดับที่ ใน Invoice</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:integer">
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="tariff_code">
                            <xs:annotation>
                              <xs:documentation>พิกัด</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="20"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_name">
                            <xs:annotation>
                              <xs:documentation>ชื่อสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="255"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_description">
                            <xs:annotation>
                              <xs:documentation>รายละเอียดสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_other_desc" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>รายละเอียดสินค้าอื่นๆ (เช่น LC No./Date เป็นต้น) แสดงท้ายสุดของรายการสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="model_name" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>รุ่นของสินค้า (ต้องระบุชื่อรุ่นสินค้า กรณีใช้พิกัดกรณีที่ใช้พิกัดศุลกากรภายใต้พิกัดที่ 84, 85 และ 87)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight">
                            <xs:annotation>
                              <xs:documentation>น้ำหนักรวม GROSS WEIGHT ของแต่ละรายการสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight_unit" type="ns:Unit_Code">
                            <xs:annotation>
                              <xs:documentation>รหัสหน่วย น้ำหนักรวม (GROSS WEIGHT) - ดูรายละเอียดได้จากรหัสหน่วย (Unit_Code)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="net_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>น้ำหนักสุทธิ NET WEIGHT ของแต่ละรายการสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight_unit" default="KGM">
                            <xs:annotation>
                              <xs:documentation>รหัสหน่วยของ น้ำหนักสุทธิ (เริ่มใช้ KGM ตั้งแต่ 1/1/2014)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="KGM"/>
                                <xs:enumeration value="KGS"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="fob_amt" default="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่าราคา FOB (USD)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="fob_amt_by_currency" minOccurs="0" default="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่าราคา FOB สกุลเงินอื่น (กรณีเลือกสกุลเงินอื่น ให้ระบุมูลค่าตามสกุลเงินอื่นที่เลือกไว้)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="usdinvoice" default="0" minOccurs ="0">
                            <xs:annotation>
                              <xs:documentation>มูลค่า USD ต่างประเทศ Third Contry Invoicing</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18" />
                                <xs:fractionDigits value="4" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="mark">
                            <xs:annotation>
                              <xs:documentation>Mark</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="box8">
                            <xs:annotation>
                              <xs:documentation>ข้อมูลในแสดงในช่อง 8 ของหนังสือรับรอง</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
								<xs:minLength value="1"/>
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
						  <xs:element name="display_usd_total" minOccurs="0" maxOccurs="1">
							<xs:annotation>
								<xs:documentation>แสดงผลรวม USD ในช่อง 7 0=แสดง, 1=ไม่แสดง</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:enumeration value="0"/>
									<xs:enumeration value="1"/>
								</xs:restriction>
							</xs:simpleType>
						  </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <!-- ข้อมูลผลการตรวจคุณสมบัติทางด้านถิ่นกำเนิดของสินค้า ด้วยระบบคอมพิวเตอร์ (ต้นทุน) -->
                    <xs:element name="FormE_ESSDetailCost" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="asset_shares_tax">
                            <xs:annotation>
                              <xs:documentation>เลขประตัวผู้เสียภาษี ของบริษัทเจ้าของผลการตรวจคุณสมบัติฯ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="13" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="asset_shares">
                            <xs:annotation>
                              <xs:documentation>เลขที่อ้างอิงผลการตรวจสอบคุณสมบัติฯ (ต้นทุน)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="15" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="asset_shares_country" type="ns:Asset_Country_FormE">
                            <xs:annotation>
                              <xs:documentation>ประเทศที่ขอใช้สิทธิฯ ของผลการตรวจคุณสมบัติฯ (ต้นทุน) - ดูรายละเอียดรหัสประเทศได้จาก Asset_Country_FormE)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="asset_shares_date"  type="ns:Date">
                            <xs:annotation>
                              <xs:documentation>วันที่อนุมัติผลการตรวจคุณสมบัติ(ต้นทุน) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="rovers_owner_company" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ขื่อบริษัทเจ้าของผลการตรวจคุณสมบัติฯ (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_no" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>เลขที่หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_date"  type="ns:Date" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>

                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนไฟล์ Scan เอกสารแนบ -->
        <xs:element name="FormE_ESSAttach" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AttachDetail" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="file_name">
                      <xs:annotation>
                        <xs:documentation>ชื่อไฟล์</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="5"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_type">
                      <xs:annotation>
                        <xs:documentation>
                          ประเภทของเอกสาร:
                          0 = ใบกำกับสินค้า (Invoice)
                          1 = หลักฐานแสดงการส่งสินค้า (Bill of Landing หรือ Air Way Bill)
                          2 = เอกสารประกอบการพิจารณาอื่นๆ
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                          <xs:enumeration value="2"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_description">
                      <xs:annotation>
                        <xs:documentation>รายละเอียดของเอกสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูล Invoices Data -->
        <xs:element name="InvoiceData" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Invoices" minOccurs="1" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="InvoiceDetail">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="invoice_no">
                            <xs:annotation>
                              <xs:documentation>Invoice no.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="invoice_date">
                            <xs:annotation>
                              <xs:documentation>วันที่ของ Invoice (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value="8"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="shipper">
                            <xs:annotation>
                              <xs:documentation>Shipper/Exporter</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="destination_address">
                            <xs:annotation>
                              <xs:documentation>Destination Address</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="from_port">
                            <xs:annotation>
                              <xs:documentation>from port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="port_discharge">
                            <xs:annotation>
                              <xs:documentation>to port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="transport_by">
                            <xs:annotation>
                              <xs:documentation>Transport by</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="vasel_name">
                            <xs:annotation>
                              <xs:documentation>vasel name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="etd">
                            <xs:annotation>
                              <xs:documentation>ETD date/Onboard date</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value="8"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>total gross weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="3"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight_unit" type="ns:Unit_Code" default="KGM">
                            <xs:annotation>
                              <xs:documentation>total gross weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity1">
                            <xs:annotation>
                              <xs:documentation>Total quantity</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity1_unit" type="ns:Unit_Code">
                            <xs:annotation>
                              <xs:documentation>Total quantity unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity2" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity2</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity2_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity2 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity3" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity3</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity3_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity3 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity4" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity4_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_quantity5" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_quantity5_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>Total quantity5 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_net_weight">
                            <xs:annotation>
                              <xs:documentation>Total net weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_net_weight_unit" type="ns:Unit_Code" default="KGM">
                            <xs:annotation>
                              <xs:documentation>Total net weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="total_fob">
                            <xs:annotation>
                              <xs:documentation>Total FOB</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_fob_by_currency">
                            <xs:annotation>
                              <xs:documentation>Total FOB by Currency</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_cif">
                            <xs:annotation>
                              <xs:documentation>Total CIF</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_cfr">
                            <xs:annotation>
                              <xs:documentation>Total CRF</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="14"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="InvoiceProducts">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="ProductDetail" minOccurs="1" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="product_name">
                                  <xs:annotation>
                                    <xs:documentation>product name</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="500"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="product_description">
                                  <xs:annotation>
                                    <xs:documentation>product description</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="4000"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="net_weight" default="0">
                                  <xs:annotation>
                                    <xs:documentation>น้ำหนักสุทธิ NET WEIGHT</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="net_weight_unit" type="ns:Unit_Code" default="KGM">
                                  <xs:annotation>
                                    <xs:documentation>Net Weight unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="gross_weight" default="0">
                                  <xs:annotation>
                                    <xs:documentation>น้ำหนัก GROSS WEIGHT</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="gross_weight_unit" type="ns:Unit_Code" default="KGM">
                                  <xs:annotation>
                                    <xs:documentation>Gross weight unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity1" default="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity1_unit" type="ns:Unit_Code">
                                  <xs:annotation>
                                    <xs:documentation>quantity unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity2" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 2</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity2_unit" type="ns:Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity2 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity3" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 3</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity3_unit" type="ns:Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity3 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity4" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 4</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity4_unit" type="ns:Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity4 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="quantity5" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>ปริมาณ 5</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18"/>
                                      <xs:fractionDigits value="4"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="quantity5_unit" type="ns:Unit_Code" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>quantity5 unit</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                                <xs:element name="unit_price_usd" default="0" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>Unit Price (USD)</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="14"/>
                                      <xs:fractionDigits value="2"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="fob_amt" default="0">
                                  <xs:annotation>
                                    <xs:documentation>FOB (USD)</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="14"/>
                                      <xs:fractionDigits value="2"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="fob_amt_by_currency" default="0">
                                  <xs:annotation>
                                    <xs:documentation>FOB (USD)</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="14"/>
                                      <xs:fractionDigits value="2"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="usdinvoice" default="0" minOccurs ="0">
                                  <xs:annotation>
                                    <xs:documentation>มูลค่า USD ต่างประเทศ Third Contry Invoicing</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:decimal">
                                      <xs:totalDigits value="18" />
                                      <xs:fractionDigits value="4" />
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="mark" default="NO MARK">
                                  <xs:annotation>
                                    <xs:documentation>shipping mark</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="500"/>
                                    </xs:restriction>
                                  </xs:simpleType>
                                </xs:element>
                                <xs:element name="letter" minOccurs="0">
                                  <xs:annotation>
                                    <xs:documentation>letter of credit</xs:documentation>
                                  </xs:annotation>
                                  <xs:simpleType>
                                    <xs:restriction base="xs:string">
                                      <xs:maxLength value="100"/>
                                    </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>
        <!-- ข้อมูลส่วน B/L, AWB, FCR, อื่นๆ -->
        <xs:element name="BLData" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="BLDetail" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="bl_no">
                      <xs:annotation>
                        <xs:documentation>เลขที่ B/L, AWB no., หรือเลขที่ของเอกสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_no" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Document no</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="50"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_owner" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>document owner</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="shipper">
                      <xs:annotation>
                        <xs:documentation>Shipper name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="500"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="consignee">
                      <xs:annotation>
                        <xs:documentation>Consignee name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="500"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_of_load">
                      <xs:annotation>
                        <xs:documentation>port of load</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="port_of_discharge">
                      <xs:annotation>
                        <xs:documentation>port of discharge</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="place_of_delivery">
                      <xs:annotation>
                        <xs:documentation>place of delivery</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="final_destination" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>final destination</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="300"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="onboard_date" type="ns:Date">
                      <xs:annotation>
                        <xs:documentation>date of on board (format: YYYYMMDD)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="issue_date" type="ns:Date">
                      <xs:annotation>
                        <xs:documentation>date of issue (format: YYYYMMDD)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="transport_by">
                      <xs:annotation>
                        <xs:documentation>transport by</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="vasel_name">
                      <xs:annotation>
                        <xs:documentation>vasel name</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity1">
                      <xs:annotation>
                        <xs:documentation>Total quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity1_unit" type="ns:Unit_Code">
                      <xs:annotation>
                        <xs:documentation>Total quantity unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity2" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity2</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity2_unit" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity2 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity3" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity3</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity3_unit" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity3 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity4" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity4_unit" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_quantity5" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="14"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_quantity5_unit" type="ns:Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Total quantity5 unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_gross_weight" default="0">
                      <xs:annotation>
                        <xs:documentation>total gross quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_gross_weight_unit" type="ns:Unit_Code">
                      <xs:annotation>
                        <xs:documentation>total gross weight unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="total_net_weight" default="0">
                      <xs:annotation>
                        <xs:documentation>total net quantity</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:decimal">
                          <xs:totalDigits value="18"/>
                          <xs:fractionDigits value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="total_net_weight_unit" type="ns:Unit_Code">
                      <xs:annotation>
                        <xs:documentation>total net weight unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="type" type="ns:BL_Type" default="0" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>type of 0(default)=B/L,1=AWB,2=FCR,3=อื่นๆ</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="BLProducts">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ProductDetail" minOccurs="1" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="product_name">
                            <xs:annotation>
                              <xs:documentation>product name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="product_description">
                            <xs:annotation>
                              <xs:documentation>product description</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="4000"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>net weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="net_weight_unit" type="ns:Unit_Code">
                            <xs:annotation>
                              <xs:documentation>net weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="gross_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>gross weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight_unit" type="ns:Unit_Code" default="KGM">
                            <xs:annotation>
                              <xs:documentation>gross weight unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity1" default="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity1_unit" type="ns:Unit_Code">
                            <xs:annotation>
                              <xs:documentation>quantity unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity2" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 2</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity2_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity2 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity3" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 3</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity3_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity3 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity4" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 4</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity4_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity4 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="quantity5" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ปริมาณ 5</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="quantity5_unit" type="ns:Unit_Code" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>quantity5 unit</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="measurement" default="0" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>measurement</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="mark">
                            <xs:annotation>
                              <xs:documentation>shipping mark</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="500"/>
                              </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>
