<?xml version="1.0" encoding="utf-8"?>
<!-- Schema: FORM TC (ไทย-ชิลี) -->
<!-- Updated: 23-06-2021 edited schema for support ESS -->
<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://edi.dft.go.th/schema/Form5_2.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://edi.dft.go.th/schema/Form5_2.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="Form5_2">
    <xs:complexType>
      <xs:sequence>
        <!-- ข้อมูลส่วนหลัก -->
        <xs:element name="Form5_2Header">
          <xs:complexType>
            <xs:sequence>
              <!-- ข้อมูลช่องที่ 1 (ส่วนหลัก) -->
              <xs:element name="CompanyDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="card_id">
                      <xs:annotation>
                        <xs:documentation>บัตรประจำตัวกรรมการผู้มีอำนาจ/ผู้รับมอบอำนาจ เลขที่ </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:length value="9"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="company_email" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>Email</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="site_id" type="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:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 2 (ส่วนประเทศ) -->
              <xs:element name="DestinationDetailEDICountry">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="destination_country" type="Form5_2_Country_List" default="CL">
                      <xs:annotation>
                        <xs:documentation>ประเทศปลายทาง (ใช้รหัสประเทศปลายทาง ดูรายละเอียดได้จาก Form5_2_Country_List)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 3 (ส่วนยานพาหนะที่ส่งออก) -->
              <xs:element name="TransportDetailEDI">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ship_by">
                      <xs:annotation>
                        <xs:documentation>ยานพาหนะที่ส่งออก (0=เรือ,1=เครื่องบิน,2=ทางบก,3=ไปรษณีย์,4=นำติดตัว)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <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="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:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 4 (ส่วน gross weight และ Quantity) -->
              <xs:element name="WeightAndQuantity">
                <xs:complexType>
                  <xs:sequence>
                    <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="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="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="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="quantity4" 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_code4" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</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="q_unit_code5" type="Unit_Code" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>รหัสหน่วย (ดูรายละเอียดได้จากตารางรหัสหน่วย Unit_Code)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 5 (Invoice ต่างประเทศ) => จะใส่ข้อมูลส่วนนี้เฉพาะกรณีเลือก third_country_invoicing เป็น 1 เท่านั้น -->
              <xs:element name="InvoicesThirdCountry" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="InvoicesThirdCountryDetail" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="invoiceno_thirdcountry">
                            <xs:annotation>
                              <xs:documentation>หมายเลข Invoice (ระบุไม่เกิน 13 ตัวอักษร ต่อ 1 บรรทัด)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="invoicedate_thirdcountry" type="Date">
                            <xs:annotation>
                              <xs:documentation>วันที่ Invoice third country (YYYYMMDD)เช่น 20101231 </xs:documentation>
                            </xs:annotation>
                          </xs:element>
							<xs:element name="NotDisplayThirdInvoicing" minOccurs="0">
								<xs:annotation>
									<xs:documentation>ไม่ขอแสดง Invoice ต่างประเทศ ในช่อง 10 0=แสดง , 1=ไม่แสดง</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:enumeration value="0"/>
										<xs:enumeration value="1"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 5 (Invoice List) -->
              <xs:element name="Invoices">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="invoice_no1" minOccurs="1" maxOccurs="1">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 1</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date1" type="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 1 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no2" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 2</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date2" type="Date" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 2 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no3" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 3</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date3" type="Date" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 3 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no4" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 4</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date4" type="Date" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 4 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="invoice_no5" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>หมายเลข Invoice 5</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="35"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="invoice_date5" type="Date" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>วันที่ออก Invoice 5 (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="bill_type">
                      <xs:annotation>
                        <xs:documentation>ประเภทใบตราส่งสินค้า (B/L=0, AWB=1, ใบรับไปรษณีย์=2, อื่นๆ=3)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                          <xs:enumeration value="2"/>
                          <xs:enumeration value="3"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </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="Date">
                      <xs:annotation>
                        <xs:documentation>วันที่ส่งออก (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <!-- ข้อมูลช่องที่ 6 (เอกสารที่แนบประกอบการพิจารณา)  -->
              <xs:element name="AttachFile" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="attach_file">
                      <xs:annotation>
                        <xs:documentation>ข้อความอธิบายรายการเอกสารที่แนบประกอบการพิจารณา</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="ref_form_number" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation>กรณียกเลิกเพื่่อขอแก้ไขรายละเอียดในฟอร์มต้องป้อนเลขที่หนังสือรับรองฉบับเดิมด้วย เช่น TC2015-0000001</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="100"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country_invoicing" default="0">
                      <xs:annotation>
                        <xs:documentation>Third-Country Invoicing (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="third_country">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด third_country_invoicing เป็น 1 ให้ระบุชื่อ+ประเทศผู้ออก Invoice Third Country</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="exibition" default="0">
                      <xs:annotation>
                        <xs:documentation>Exibition (0=ไม่เลือก หรือ 1=เลือก)</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="place_exibition">
                      <xs:annotation>
                        <xs:documentation>กรณีกำหนด exibition เป็น 1 ให้ระบุชื่องานและสถานที่จัดงาน</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:maxLength value="250"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
				<!--  ข้อมูลสำหรับบริษัทที่ต้องการออกหนังสือรับรอง แบบลงลายมือชื่อและตราประทับอิเล็กทรอนิกส์ (Electronic Signature and Seal)  -->
				<xs:element name="SealSignSupported" minOccurs="1" maxOccurs="1">
					<xs:complexType>
						<xs:sequence>
						<xs:element name="SignRefID" type="xs:unsignedInt" minOccurs="1" maxOccurs="1">
							<xs:annotation>
								<xs:documentation>รหัสอ้างอิงรูปภาพลายมือชื่อและตราประทับที่บันทึกไว้ในระบบเรียบร้อยแล้ว ซึ่งต้องการให้นำมาพิมพ์ลงในหนังสือรับรองฯ</xs:documentation>
							</xs:annotation>
						</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนรายการสินค้า และ การตรวจสอบต้นทุน -->
        <xs:element name="Form5_2Detail">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Form5_2Product" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <!-- ข้อมูลรายการสินค้าและราคา -->
                    <xs:element name="Form5_2DetailProduct">
                      <xs:complexType>
                        <xs:sequence>
                          <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="model_name" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>รุ่นของสินค้า (ต้องระบุชื่อรุ่นสินค้า กรณีใช้พิกัดกรณีที่ใช้พิกัดศุลกากรภายใต้พิกัดที่ 84, 85 และ 87)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          
                          <xs:element name="gross_weight">
                            <xs:annotation>
                              <xs:documentation>น้ำหนักรวม GROSS WEIGHT ของแต่ละรายการสินค้า</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="4"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="gross_weight_unit" type="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="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>Marks</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 ในช่อง 7 0=แสดง, 1=ไม่แสดง</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:enumeration value="0"/>
                                <xs:enumeration value="1"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <!-- ข้อมูลผลการตรวจคุณสมบัติทางด้านถิ่นกำเนิดของสินค้า ด้วยระบบคอมพิวเตอร์ (ต้นทุน) -->
                    <xs:element name="Form5_2DetailCost" 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="Asset_Country">
                            <xs:annotation>
                              <xs:documentation>ประเทศที่ขอใช้สิทธิฯ ของผลการตรวจคุณสมบัติฯ (ต้นทุน) - ดูรายละเอียดรหัสประเทศได้จาก Asset_Country)</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="asset_shares_date"  type="Date">
                            <xs:annotation>
                              <xs:documentation>วันที่อนุมัติผลการตรวจคุณสมบัติ(ต้นทุน) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>

                          <!-- ข้อมูลเกี่ยวกับ โมเดลต้นทุน 17-12-28 -->
                          <xs:element name="rovers_owner_company" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>ขื่อบริษัทเจ้าของผลการตรวจคุณสมบัติฯ (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="200" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_no" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>เลขที่หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม)</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="rovers_allow_doc_date"  type="Date" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>หนังสือยินยอมให้ใช้ผลการตรวจสอบคุณสมบัติทางด้านถิ่นกำเนิดสินค้า (กรณีใช้ต้นทุนร่วม) - รูปแบบ ค.ศ. YYYYMMDD เช่น 20100129</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูลส่วนไฟล์ Scan เอกสารแนบ -->
        <xs:element name="Form5_2Attach" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AttachDetail" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="file_name">
                      <xs:annotation>
                        <xs:documentation>ชื่อไฟล์</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="5"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_type">
                      <xs:annotation>
                        <xs:documentation>
                          ประเภทของเอกสาร:
                          0 = ใบกำกับสินค้า (Invoice)
                          1 = หลักฐานแสดงการส่งสินค้า (Bill of Landing หรือ Air Way Bill)
                          2 = เอกสารประกอบการพิจารณาอื่นๆ
                        </xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="0"/>
                          <xs:enumeration value="1"/>
                          <xs:enumeration value="2"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="document_description">
                      <xs:annotation>
                        <xs:documentation>รายละเอียดของเอกสาร</xs:documentation>
                      </xs:annotation>
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:minLength value="1"/>
                          <xs:maxLength value="255"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- ข้อมูล Invoices Data -->
        <xs:element name="InvoiceData" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Invoices" minOccurs="1" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="InvoiceDetail">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="invoice_no">
                            <xs:annotation>
                              <xs:documentation>Invoice no.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="invoice_date">
                            <xs:annotation>
                              <xs:documentation>วันที่ของ Invoice (รูปแบบ YYYYMMDD เช่น 20100129(ใช้ ค.ศ.))</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value="8"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="shipper">
                            <xs:annotation>
                              <xs:documentation>Shipper/Exporter</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="destination_address">
                            <xs:annotation>
                              <xs:documentation>Destination Address</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="300"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="from_port">
                            <xs:annotation>
                              <xs:documentation>from port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="port_discharge">
                            <xs:annotation>
                              <xs:documentation>to port name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="transport_by">
                            <xs:annotation>
                              <xs:documentation>Transport by</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="50"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="vasel_name">
                            <xs:annotation>
                              <xs:documentation>vasel name</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:maxLength value="250"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="etd">
                            <xs:annotation>
                              <xs:documentation>ETD date/Onboard date</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:length value="8"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight" default="0">
                            <xs:annotation>
                              <xs:documentation>total gross weight</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:decimal">
                                <xs:totalDigits value="18"/>
                                <xs:fractionDigits value="3"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="total_gross_weight_unit" type="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="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="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="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="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="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="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="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="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="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="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="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="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="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="Date">
                      <xs:annotation>
                        <xs:documentation>date of on board (format: YYYYMMDD)</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="issue_date" type="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="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="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="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="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="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="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="Unit_Code">
                      <xs:annotation>
                        <xs:documentation>total net weight unit</xs:documentation>
                      </xs:annotation>
                    </xs:element>
                    <xs:element name="type" type="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="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="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="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="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="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="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="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:simpleType name="Date">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="8"/>
        </xs:restriction>
      </xs:simpleType>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value=""/>
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>
  <!-- รหัสประเภทของใบตราส่งสินค้า -->
  <xs:simpleType name="BL_Type">
    <xs:restriction base="xs:integer">
      <xs:enumeration value="0"/>
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
      <!--
      รหัสข้อมูล
      0 = B/L
      1 = AWB
      2 = FCR
	  3 = อื่นๆ
      -->
    </xs:restriction>
  </xs:simpleType>
  <!-- รหัสสถานที่ ที่จะไปรับฟอร์ม -->
  <xs:simpleType name="Site_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CB-003"/>
      <xs:enumeration value="CM-001"/>
      <xs:enumeration value="ST-001"/>
      <xs:enumeration value="ST-002"/>
      <xs:enumeration value="ST-003"/>
      <xs:enumeration value="ST-004"/>
      <!--xs:enumeration value="CR-006" />
      <xs:enumeration value="HY-002" />
      <xs:enumeration value="NK-005" />
      <xs:enumeration value="SK-004" />
      <xs:enumeration value="ST-001R" />
      <xs:enumeration value="ST-001T" />
      <xs:enumeration value="ST-005" /-->
      <!-- รหัสของสถานที่รับ
        ST-001=กรมการค้าฯ (ส่วนกลาง)
        ST-001R=กรมการค้าฯ (ส่วนกลาง Rice)
        ST-001T=กรมการค้าต่างประเทศ (ส่วนกลาง Textile)
        ST-002=กรมการค้าฯ (ท่าเรือ)
        ST-003=กรมการค้าฯ (สุวรรณภูมิ)
        ST-004=กรมการค้าฯ (สอ)
        ST-005=กรมการค้าฯ (ตลาดไท)
        CB-003=สคต.เขต3 (ชลบุรี)
        CM-001=สคต.เขต1 (เชียงใหม่)
        CR-006=สคต.เขต6 (เชียงราย)
        HY-002=สคต.เขต2 (สงขลา)
        NK-005=สคต.เขต5 (หนองคาย)
        SK-004=สคต.เขต4 (สระแก้ว)
      -->
    </xs:restriction>
  </xs:simpleType>
  <!-- รหัสประเทศ-->
  <xs:simpleType name="Form5_2_Country_List">
    <xs:restriction base="xs:string">
      <xs:enumeration value="CL"/>
      <!-- รหัสประเทศ
        CL = CHILE                                
        -->
    </xs:restriction>
  </xs:simpleType>
  <!-- รหัสประเทศ ตรวจสอบต้นทุน-->
  <xs:simpleType name="Asset_Country">
    <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
      <xs:enumeration value="CL"/>
      <!-- รหัสประเทศสำหรับการตรวจสอบต้นทุน
        CL = CHILE              
        -->
    </xs:restriction>
  </xs:simpleType>
  <!-- รหัสหน่วย -->
  <xs:simpleType name="Unit_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
      <xs:enumeration value="ADMT"/>
      <xs:enumeration value="BAG"/>
      <xs:enumeration value="BAGS"/>
      <xs:enumeration value="BALE"/>
      <xs:enumeration value="BALES"/>
      <xs:enumeration value="BAR"/>
      <xs:enumeration value="BASKET"/>
      <xs:enumeration value="BASKETS"/>
      <xs:enumeration value="BOARD"/>
      <xs:enumeration value="BOARDS"/>
      <xs:enumeration value="BOTTLE"/>
      <xs:enumeration value="BOTTLES"/>
      <xs:enumeration value="BOX"/>
      <xs:enumeration value="BOXES"/>
      <xs:enumeration value="BUNDLE"/>
      <xs:enumeration value="BUNDLES"/>
      <xs:enumeration value="CANS"/>
      <xs:enumeration value="CBF"/>
      <xs:enumeration value="CBFS"/>
      <xs:enumeration value="CARDS"/>
      <xs:enumeration value="CARTRIDGE"/>
      <xs:enumeration value="CASE"/>
      <xs:enumeration value="CASES"/>
      <xs:enumeration value="CNTR"/>
      <xs:enumeration value="COIL"/>
      <xs:enumeration value="COILS"/>
      <xs:enumeration value="CONE"/>
      <xs:enumeration value="CRATE"/>
      <xs:enumeration value="CRATES"/>
      <xs:enumeration value="CTN"/>
      <xs:enumeration value="CTNS"/>
      <xs:enumeration value="DOZ"/>
      <xs:enumeration value="DOZS"/>
      <xs:enumeration value="DRUM"/>
      <xs:enumeration value="DRUMS"/>
      <xs:enumeration value="EACH"/>
      <xs:enumeration value="FLAT CARD"/>
      <xs:enumeration value="FLAT CARDS"/>
      <xs:enumeration value="FLEXITANK"/>
      <xs:enumeration value="FLEXITANKS"/>
      <xs:enumeration value="FOOT"/>
      <xs:enumeration value="GLL"/>
      <xs:enumeration value="GAYLOADBOX"/>
      <xs:enumeration value="GMS"/>
      <xs:enumeration value="GYDS"/>
      <xs:enumeration value="GRS"/>
      <xs:enumeration value="GRSES"/>
      <xs:enumeration value="HANKS"/>
      <xs:enumeration value="HEADS"/>
      <xs:enumeration value="IBC"/>
      <xs:enumeration value="IDC"/>
      <xs:enumeration value="IDCS"/>
      <xs:enumeration value="IST"/>
      <xs:enumeration value="ISTS"/>
      <xs:enumeration value="JUMBO BAGS"/>
      <xs:enumeration value="KARAT"/>
      <xs:enumeration value="KGS"/>
      <xs:enumeration value="KGM"/>
      <xs:enumeration value="LBS"/>
      <xs:enumeration value="LENGTHS"/>
      <xs:enumeration value="LOT"/>
      <xs:enumeration value="LOTS"/>
      <xs:enumeration value="M/T"/>
      <xs:enumeration value="M3"/>
      <xs:enumeration value="MCTN"/>
      <xs:enumeration value="MCTNS"/>
      <xs:enumeration value="METER"/>
      <xs:enumeration value="MTON"/>
      <xs:enumeration value="MTONS"/>
      <xs:enumeration value="MT"/>
      <xs:enumeration value="MTS"/>
      <xs:enumeration value="PACK"/>
      <xs:enumeration value="PACKAGES"/>
      <xs:enumeration value="PAIL"/>
      <xs:enumeration value="PAILS"/>
      <xs:enumeration value="PAIR"/>
      <xs:enumeration value="PAIRS"/>
      <xs:enumeration value="PALLET"/>
      <xs:enumeration value="PALLETS"/>
      <xs:enumeration value="PARCEL"/>
      <xs:enumeration value="PARCELS"/>
      <xs:enumeration value="PCS"/>
      <xs:enumeration value="PIECE"/>
      <xs:enumeration value="PIECES"/>
      <xs:enumeration value="POUNDS"/>
      <xs:enumeration value="RACK"/>
      <xs:enumeration value="RACKS"/>
      <xs:enumeration value="REELS"/>
      <xs:enumeration value="ROLL"/>
      <xs:enumeration value="ROLLS"/>
      <xs:enumeration value="S/PACKS"/>
      <xs:enumeration value="S/TRAY"/>
      <xs:enumeration value="S/TRAYS"/>
      <xs:enumeration value="SACKS"/>
      <xs:enumeration value="SET"/>
      <xs:enumeration value="SETS"/>
      <xs:enumeration value="SHPRS"/>
      <xs:enumeration value="SMLBUNDLES"/>
      <xs:enumeration value="SPACEKRAFT"/>
      <xs:enumeration value="SPOOL"/>
      <xs:enumeration value="SPOOLS"/>
      <xs:enumeration value="SQF"/>
      <xs:enumeration value="SQU FEETT"/>
      <xs:enumeration value="SQU FOOTS"/>
      <xs:enumeration value="SQM2"/>
      <xs:enumeration value="MTK"/>
      <xs:enumeration value="STACK"/>
      <xs:enumeration value="STEEL BULK"/>
      <xs:enumeration value="SC"/>
      <xs:enumeration value="SCS"/>
      <xs:enumeration value="STEELCRATE"/>
      <xs:enumeration value="STEELPLT"/>
      <xs:enumeration value="STEELPLTS"/>
      <xs:enumeration value="TIN"/>
      <xs:enumeration value="TINCN"/>
      <xs:enumeration value="TON"/>
      <xs:enumeration value="TOTE"/>
      <xs:enumeration value="TOTES"/>
      <xs:enumeration value="TRAY"/>
      <xs:enumeration value="TRAYP"/>
      <xs:enumeration value="TRAYSP"/>
      <xs:enumeration value="TRAYS"/>
      <xs:enumeration value="UNIT"/>
      <xs:enumeration value="UNITS"/>
      <xs:enumeration value="VIAL"/>
      <xs:enumeration value="VIALS"/>
      <xs:enumeration value="WDCRATE"/>
      <xs:enumeration value="WDCRATES"/>
      <xs:enumeration value="WBOX"/>
      <xs:enumeration value="WBOXS"/>
      <xs:enumeration value="WCASE"/>
      <xs:enumeration value="WCASES"/>
      <xs:enumeration value="WOODENPLT"/>
      <xs:enumeration value="WOODENPLTS"/>
      <xs:enumeration value="YARD"/>
      <xs:enumeration value="YARDS"/>
      <!-- รหัสของหน่วย 
        ADMT=ADMT
        BAG=BAG
        BAGS=BAGS
        BALE=BALE
        BALES=BALES
        BAR=BAR
        BASKET=BASKET
        BASKETS=BASKETS
        BOARD=BOARD
        BOARDS=BOARDS
        BOTTLE=BOTTLE
        BOTTLES=BOTTLES
        BOX=BOX
        BOXES=BOXES
        BUNDLE=BUNDLE
        BUNDLES=BUNDLES
        CANS=CANS
        CBF=CARDBOARD FIBRITE
        CBFS=CARDBOARD FIBRITES 
        CARDS=CARDS
        CARTRIDGE=CARTRIDGE
        CASE=CASE
        CASES=CASES
        CNTR=CNTR
        COIL=COIL
        COILS=COILS
        CONE=CONE
        CRATE=CRATE
        CRATES=CRATES
        CTN=CTN
        CTNS=CTNS
        DOZ=DOZ
        DOZS=DOZS
        DRUM=DRUM
        DRUMS=DRUMS
        EACH=EACH
        FLAT CARD=FLAT CARD
        FLAT CARDS=FLAT CARDS
        FLEXITANK=FLEXITANK
        FLEXITANKS=FLEXITANKS
        FOOT=FOOT
        GLL=GALLON
        GAYLOADBOX=GAYLOADBOX
        GMS=GMS
        GYDS=GROSS YARD
        GRS=GRS
        GRSES=GRSES
        HANKS=HANKS
        HEADS=HEADS
        IBC=IBC(INTERMEDIATE BULK CONTAINER)
        IDC=IDC
        IDCS=IDCS
        IST=IST
        ISTS=ISTS
        JUMBO BAGS=JUMBO BAGS
        KARAT=KARAT
        KGS=KGS
		KGM=KGM
        LBS=LBS
        LENGTHS=LENGTHS
        LOT=LOT
        LOTS=LOTS
        M/T=M/T
        M3=M3
        MCTN=MCTN
        MCTNS=MCTNS
        METER=METER
        MTON=METRIC TON 
        MTONS=METRIC TONS 
        MT=MT
        MTS=MTS
        PACK=PACK
        PACKAGES=PACKAGES
        PAIL=PAIL
        PAILS=PAILS
        PAIR=PAIR
        PAIRS=PAIRS
        PALLET=PALLET
        PALLETS=PALLETS
        PARCEL=PARCEL
        PARCELS=PARCELS
        PCS=PCS
        PIECE=PIECE
        PIECES=PIECES
        POUNDS=POUNDS
		RACK=RACK
		RACKS=RACKS
        REELS=REELS
        ROLL=ROLL
        ROLLS=ROLLS
        S/PACKS=S/PACKS
        S/TRAY=S/TRAY
        S/TRAYS=S/TRAYS
        SACKS=SACKS
        SET=SET
        SETS=SETS
        SHPRS=SHIPPERS
        SMLBUNDLES=SMLBUNDLES
        SPACEKRAFT=SPACEKRAFT
        SPOOL=SPOOL
        SPOOLS=SPOOLS
        SQF=SQUARE FEETT
        SQU FEETT=SQUARE FEETT
        SQU FOOTS=SQUARE FOOTS
        SQM2=SQUARE METRE 
        MTK=SQUARE METRE 
        STACK=STACK
        STEEL BULK=STEEL BULK
        SC=STEEL CASE
        SCS=STEEL CASES
        STEELCRATE=STEELCRATE
        STEELPLT=STEELPLT
        STEELPLTS=STEELPLTS
        TIN=TIN
        TINCN=TIN-CAN
        TON=TON
        TOTE=TOTE
        TOTES=TOTES
        TRAY=TRAY
        TRAYP=TRAY/PACK
        TRAYSP=TRAY/PACKS
        TRAYS=TRAYS
        UNIT=UNIT
        UNITS=UNITS
        VIAL=VIAL
        VIALS=VIALS
        WDCRATE=WDCRATE
        WDCRATES=WDCRATES
        WBOX=WOODEN BOX
        WBOXS=WOODEN BOXS
        WCASE=WOODENCASE
        WCASES=WOODENCASES
        WOODENPLT=WOODENPLT
        WOODENPLTS=WOODENPLTS
        YARD=YARD
        YARDS=YARDS
        -->
    </xs:restriction>
  </xs:simpleType>
  <!-- รหัสสกุลเงิน (Currency Code) -->
  <xs:simpleType name="Currency_Code">
    <xs:restriction base="xs:string">
      <xs:enumeration value="ADP" />
      <xs:enumeration value="AED" />
      <xs:enumeration value="AFA" />
      <xs:enumeration value="ALL" />
      <xs:enumeration value="ANG" />
      <xs:enumeration value="AON" />
      <xs:enumeration value="ARS" />
      <xs:enumeration value="ATS" />
      <xs:enumeration value="AUD" />
      <xs:enumeration value="AWG" />
      <xs:enumeration value="BBD" />
      <xs:enumeration value="BDT" />
      <xs:enumeration value="BEF" />
      <xs:enumeration value="BGL" />
      <xs:enumeration value="BHD" />
      <xs:enumeration value="BIF" />
      <xs:enumeration value="BMD" />
      <xs:enumeration value="BND" />
      <xs:enumeration value="BOB" />
      <xs:enumeration value="BRL" />
      <xs:enumeration value="BSD" />
      <xs:enumeration value="BTN" />
      <xs:enumeration value="BWP" />
      <xs:enumeration value="BYB" />
      <xs:enumeration value="BZD" />
      <xs:enumeration value="CAD" />
      <xs:enumeration value="CHF" />
      <xs:enumeration value="CNY" />
      <xs:enumeration value="COP" />
      <xs:enumeration value="CYP" />
      <xs:enumeration value="CZK" />
      <xs:enumeration value="DEM" />
      <xs:enumeration value="DKK" />
      <xs:enumeration value="ESP" />
      <xs:enumeration value="EUR" />
      <xs:enumeration value="FIM" />
      <xs:enumeration value="FRF" />
      <xs:enumeration value="GBP" />
      <xs:enumeration value="GRD" />
      <xs:enumeration value="HKD" />
      <xs:enumeration value="HUF" />
      <xs:enumeration value="IDR" />
      <xs:enumeration value="IEP" />
      <xs:enumeration value="ILS" />
      <xs:enumeration value="INR" />
      <xs:enumeration value="IQD" />
      <xs:enumeration value="IRR" />
      <xs:enumeration value="ISK" />
      <xs:enumeration value="ITL" />
      <xs:enumeration value="JPY" />
      <xs:enumeration value="KES" />
      <xs:enumeration value="KHR" />
      <xs:enumeration value="KRW" />
      <xs:enumeration value="KWD" />
      <xs:enumeration value="LAK" />
      <xs:enumeration value="LKR" />
      <xs:enumeration value="MMK" />
      <xs:enumeration value="MTL" />
      <xs:enumeration value="MXN" />
      <xs:enumeration value="MXP" />
      <xs:enumeration value="MYR" />
      <xs:enumeration value="NLG" />
      <xs:enumeration value="NOK" />
      <xs:enumeration value="NPR" />
      <xs:enumeration value="NZD" />
      <xs:enumeration value="OMR" />
      <xs:enumeration value="PHP" />
      <xs:enumeration value="PKR" />
      <xs:enumeration value="PTE" />
      <xs:enumeration value="QAR" />
      <xs:enumeration value="RUR" />
      <xs:enumeration value="SAR" />
      <xs:enumeration value="SEK" />
      <xs:enumeration value="SGD" />
      <xs:enumeration value="SKK" />
      <xs:enumeration value="SYP" />
      <xs:enumeration value="THB" />
      <xs:enumeration value="TRL" />
      <xs:enumeration value="TTD" />
      <xs:enumeration value="TWD" />
      <xs:enumeration value="USD" />
      <xs:enumeration value="VEB" />
      <xs:enumeration value="VND" />
      <xs:enumeration value="ZAL" />
      <xs:enumeration value="ZAR" />
      <!--
ADP	=	ANDORRAN PESETA
AED	=	U.A.E. DIRHAM
AFA	=	AFGHANI
ALL	=	LEK
ANG	=	NETHERLANDS ANTILLEAN GUI
AON	=	NEW KWANZA
ARS	=	ARGENTINE PESO
ATS	=	AUSTRIAN SCHILLINGS
AUD	=	AUSTRALIAN DOLLAR
AWG	=	ARUBAN GUILDER
BBD	=	BARBADOS DOLLAR
BDT	=	BANGLADESH TAKA
BEF	=	BELGIAN FRANC
BGL	=	LEV
BHD	=	BAHRAINI DINAR
BIF	=	BURUNDI FRANC
BMD	=	BERMUDIAN DOLLAR
BND	=	BRUNEI DOLLAR
BOB	=	BOLIVIANO
BRL	=	BRAZIL REAL
BSD	=	BAHAMIAM DOLLAR
BTN	=	NGULTRUM
BWP	=	PULA
BYB	=	BELARUSSIAN RUBLE
BZD	=	BELIZE DOLLAR
CAD	=	CANADIAN DOLLAR
CHF	=	SWISS FRANC
CNY	=	CHINA RENMINBI
COP	=	COLOMBIAN PESO
CYP	=	CYPRUS POUND
CZK	=	CZECH KORUNA
DEM	=	GERMAN MARK
DKK	=	DANISH KRONE
ESP	=	SPANISH PESETA
EUR	=	EURO
FIM	=	FINNISH MARKKA
FRF	=	FRENCH FRANC
GBP	=	BRITISH POUND
GRD	=	GREEK DRACHMA
HKD	=	HONG KONG DOLLAR
HUF	=	FORINT
IDR	=	INDONESIA RUPEE
IEP	=	IRISH PUNT
ILS	=	SHEKEL
INR	=	INDIAN RUPEE
IQD	=	IRAQI DINAR
IRR	=	IRANIAN RIAL
ISK	=	ICELAND KRONA
ITL	=	ITALIAN LIRA
JPY	=	JAPANESE YEN
KES	=	KENYAN SHILLING
KHR	=	RIEL
KRW	=	KOREAN WON
KWD	=	KUWAITI DINAR
LAK	=	KIP
LKR	=	SRI LANKAN RUPEE
MMK	=	KYAT
MTL	=	MALTESE LIRA
MXN	=	MEXICAN NUEVO PESO
MXP	=	MEXICAN PESO
MYR	=	MALAYSIAN RINGGIT
NLG	=	DUTCH GUILDER
NOK	=	NORWEGIAN KRONE
NPR	=	NEPAL RUPEE
NZD	=	NEW ZEALAND DOLLAR
OMR	=	OMANI RIAL
PHP	=	PHILIPPINE PESO
PKR	=	PAKISTANI RUPEE
PTE	=	PORTUGUESE ESCUDO
QAR	=	QATARI RIYAL
RUR	=	RUSSIAN RUBLE
SAR	=	SAUDI RIYAL
SEK	=	SWEDISH KRONA
SGD	=	SINGAPORE DOLLAR
SKK	=	SLOVAK KORUNA
SYP	=	SYRIAN POUND
THB	=	THAI BAHT
TRL	=	TURKISH LIRA
TTD	=	TRINIDAD & TOBAGO DOLLAR
TWD	=	TAIWAN DOLLAR
USD	=	U.S. DOLLAR
VEB	=	VENEZUELAN BOLIVAR
VND	=	DONG
ZAL	=	SOUTH AFRICAN RAND
ZAR	=	SOUTH AFRICA RAND
      -->
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
