<?xml version="1.0" encoding="utf-8"?>
<!-- Schema: Form RCEP 																                                -->
<!-- ========================================================================================== -->
<!-- Version: 1.00 																				                                      -->
<!-- Created date: 2022-01-01 by NTi															                              -->																					
<!-- Updated date: 2022-10-25 by NTi															                              -->
<!-- ========================================================================================== -->
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://edi.dft.go.th/schema/ess/FormRCEP.xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://edi.dft.go.th/schema/ess/FormRCEP.xsd"
  elementFormDefault="qualified" attributeFormDefault="unqualified"
  xmlns:ns="http://edi.dft.go.th/schema/ess/BaseType.xsd">
  <xs:import namespace="http://edi.dft.go.th/schema/ess/BaseType.xsd" schemaLocation="BaseType.xsd" />
  <xs:element name="FormRCEP">
    <xs:complexType>
      <xs:sequence>
        <!-- ข้อมูลส่วนหลัก -->
        <xs:element name="FormHeader">
          <xs:complexType>
            <xs:sequence>
              <!-- ข้อมูลช่องที่ 1 (ส่วนหลัก) -->
              <xs:element name="CompanyDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="PrintOption" default="0" minOccurs="1">
                      <xs:annotation>
                        <xs:documentation>
                          ตัวเลือกกรณี พิมพ์/ไม่พิมพ์ หนังสือรับรองฯ
                          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="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:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 1 (ส่วนรอง)-->
              <xs:element name="CompanyOBDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="dest_remark" default="- - - - -">
                      <xs:annotation>
                        <xs:documentation>กรณีใช้ On Behalf of ให้ใช้ O/B หรือ   C/O</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value=""/>
                          <xs:enumeration value="- - - - -"/>
                          <xs:enumeration value="O/B"/>
                          <xs:enumeration value="C/O"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_address" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด dest_remark เป็น O/B หรือ C/O ให้ระบุชื่อบริษัท,ที่อยู่ ที่ต้องการแสดง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="400"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>ob_email</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="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="dest_remark1" default="- - - - -">
                      <xs:annotation>
                        <xs:documentation>O/B หรือ C/O ของผู้ซื้อหรือผู้รับประเทศปลายทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value=""/>
                          <xs:enumeration value="- - - - -"/>
                          <xs:enumeration value="O/B"/>
                          <xs:enumeration value="C/O"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ob_dest_address" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด dest_remark1 เป็น O/B หรือ C/O ให้ระบุชื่อบริษัท,ที่อยู่ ของผู้ซื้อหรือผู้รับประเทศปลายทางที่ต้องการแสดง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="400"/>
                        </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:element name="destination_email2" 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_FormRCEP">
                      <xs:annotation>
                        <xs:documentation>ประเทศปลายทาง (ใช้รหัสประเทศปลายทาง ดูรายละเอียดได้จาก Country_List_FormRCEP)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 3 (ชื่อและที่อยู่ผู้ผลิต) -->
              <xs:element name="ManufacturerDetail" minOccurs="1" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="selected" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>ค่าที่กำหนดได้ คือ 1=กรณีมีผู้ผลิต 1 ราย	, 2=SEE BOX 8 (กรณีมีผู้ผลิตมากกว่า 1 ราย), 3=CONFIDENTIAL (ทราบผู้ผลิตแต่ไม่ต้องการระบุ), 4=NOT AVAILABLE (ไม่ทราบผู้ผลิต)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="1"/>
                          <xs:enumeration value="2"/>
                          <xs:enumeration value="3"/>
                          <xs:enumeration value="4"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="name_address" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด selected=1 ให้ ระบุชื่อ ที่อยู่ และประเทศของผู้ผลิต, ถ้าระบุ selected=2 ให้ระบุ SEE BOX 8, ถ้าระบุ selected=3 ให้ระบุ CONFIDENTIAL หรือถ้าระบุ selected=4 ให้ระบุ NOT AVAILABLE</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="300"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 4 (ส่วนยานพาหนะที่ส่งออก) -->
              <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:minLength value="1"/>
                          <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>
              <!-- ข้อมูลช่องที่ 5 (ส่วน 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>
              <!-- ข้อมูลช่องที่ 6 (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="Attach_ThirdParty_Invoice" default="0" minOccurs="1" maxOccurs="1">
                            <xs:annotation>
                              <xs:documentation>
                                ประสงค์จะแนบ Invoice Third Party
                                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="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>
              <!-- ข้อมูลช่องที่ 7 (เอกสารที่แนบประกอบการพิจารณา)  -->
              <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_party_invoicing" default="0">
                      <xs:annotation>
                        <xs:documentation>Third Party 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_party_info" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="company_name" minOccurs="1">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_party_invoicing เป็น 1 ให้ระบุชื่อบริษัท Third Party Invoicing</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="1">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_party_invoicing เป็น 1 ให้ระบุที่อยู่ Third Party Invoicing</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="1">
                            <xs:annotation>
                              <xs:documentation>กรณีกำหนด third_party_invoicing เป็น 1 ให้ระบุรหัสประเทศผู้ออก Invoice</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="back_to_back" default="0">
                      <xs:annotation>
                        <xs:documentation>Back-to-Back (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 เป็น 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="reference_co" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>การใช้เงื่อนไข Back-to-Back จำเป็นต้องกรอกข้อมูลหนังสือรับรองถิ่นกำเนิดสินค้าของประเทศต้นทาง</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!--ข้อมูลซึ่งบริษัทต้องระบุสำหรับการออกหนังสือรับรองฯ แบบลงลายมือชื่อและตราประทับอิเล็กทรอนิกส์ (Electronic Signature and Seal:ESS)-->
				<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="FormDetail">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="FormProduct" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <!-- ข้อมูลรายการสินค้าและราคา -->
                    <xs:element name="FormDetailProduct">
                      <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: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="name_address_manufacturer" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>
                                กรณีเลือก ManufacturerDetail/selected=2 (SEE BOX 8) ให้ระบุข้อมูล ชื่อ ที่อยู่ และประเทศของผู้ผลิต
                              </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="300"/>
                              </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">
                            <xs:annotation>
                              <xs:documentation>แสดงผลรวม USD ในช่อง 8 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>
                          <!--End 100Invoice-->
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <!-- ข้อมูลผลการตรวจคุณสมบัติทางด้านถิ่นกำเนิดของสินค้า ด้วยระบบคอมพิวเตอร์ (ต้นทุน) -->
                    <xs:element name="FormDetailCost" 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_Form4">
                            <xs:annotation>
                              <xs:documentation>ประเทศที่ขอใช้สิทธิฯ ของผลการตรวจคุณสมบัติฯ (ต้นทุน) - ดูรายละเอียดรหัสประเทศได้จาก Asset_Country)</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:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนไฟล์ Scan เอกสารแนบ -->
        <xs:element name="FormAttach" 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:minLength value="1"/>
                                <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>
