What is tXML with examples

Written by Administrator on Friday March 13, 2020

What is tXML

tXML (commerce eXtensible Markup Language) is a type of XML designed specifically for export control transactions and international trade.

tXML is an XML language + set of Document Type Definitions (DTDs). These DTDs are text files that describe the precise syntax and order of tXML elements. 

Example of tXML document

It means, that tXML is just XML document, but with predefined structure and tags. Let's see, how typical tXML document looks. This is Invoice without tax calculation:

<Invoice>
  <Document Type="Invoice" Version="1.0"/>
  <InvoiceHeader>
    <InvoiceId>5491332</InvoiceId>
    <InvoiceIssueDate>
      <Date>20061004</Date>
    </InvoiceIssueDate>
    <DesAdvRef>
      <DocumentNumber>557289</DocumentNumber>
      <Date>20061004</Date>
    </DesAdvRef>
    <OrderRef>
      <SellerOrderNumber/>
      <BuyerOrderNumber>258010</BuyerOrderNumber>
      <Date>20061004</Date>
    </OrderRef>
    <TaxTreatmentCode Value="NoTaxApplies"/>
    <InvoiceDueDate>
      <Date>20070102</Date>
    </InvoiceDueDate>
    <SellerParty>
      <PartyNumber>DE1253222</PartyNumber>
      <Address>
        <Name1>Deutsche Autoteile GmbH</Name1>
        <Street1>Voltastrasse 5</Street1>
        <PostalCode>30120</PostalCode>
        <City>Berlin</City>
        <CountryCode>DE</CountryCode>
      </Address>
    </SellerParty>
    <BuyerParty>
      <PartyNumber>000014070</PartyNumber>
      <Address>
        <Name1>Teilehändler Schmidt GmbH</Name1>
        <Street1>Fokkerstrasse 12</Street1>
        <PostalCode>80120</PostalCode>
        <City>München</City>
        <CountryCode>DE</CountryCode>
      </Address>
    </BuyerParty>
    <DeliveryParty>
      <PartyNumber>000014070</PartyNumber>
      <Address>
        <Name1>Teilehändler Schmidt GmbH</Name1>
        <Street1>Fokkerstrasse 12</Street1>
        <PostalCode>80120</PostalCode>
        <City>München</City>
        <CountryCode>DE</CountryCode>
      </Address>
    </DeliveryParty>
    <InvoiceOrg>
      <TaxRegistrationNumber>DE4311245</TaxRegistrationNumber>
      <InvoiceParty>
        <PartyNumber>000014080</PartyNumber>
        <Address>
          <Name1>Teilehändler Verbund GmbH</Name1>
          <Street1>Teilstrasse 25</Street1>
          <PostalCode>56010</PostalCode>
          <City>Dortmund</City>
          <CountryCode>DE</CountryCode>
        </Address>
      </InvoiceParty>
    </InvoiceOrg>
    <Currency>EUR</Currency>
  </InvoiceHeader>
  <InvoiceDetail>
    <PositionNumber>1</PositionNumber>
    <Quantity UoM="PCE">1</Quantity>
    <ProductId>
      <MakerCode/>
      <ProductNumber>265-459</ProductNumber>
      <Ean>3351642654593</Ean>
    </ProductId>
    <ProductDescription>
      <ProductName1>KO V.W. Golf II 85-</ProductName1>
    </ProductDescription>
    <DeliveryPartyNumber>000014070</DeliveryPartyNumber>
    <DesAdvRef>
      <DocumentNumber>557289</DocumentNumber>
      <Date>20061004</Date>
    </DesAdvRef>
    <DesAdvItemRef>
      <PositionNumber>1</PositionNumber>
    </DesAdvItemRef>
    <OrderRef>
      <SellerOrderNumber/>
      <BuyerOrderNumber>258010</BuyerOrderNumber>
      TECCOM SUPPLIER GUIDE - TXML TO CAP INVOICE 18
      <Date>20061004</Date>
    </OrderRef>
    <OrderItemRef>
      <SellerOrderItemRef/>
      <BuyerOrderItemRef>15</BuyerOrderItemRef>
    </OrderItemRef>
    <AllowOrCharge>
      <AllowOrChargeIdentifier Value="Allow"/>
      <AllowOrChargeDescription>Discount</AllowOrChargeDescription>
      <Percent>58.67</Percent>
      <Amount>5.05</Amount>
    </AllowOrCharge>
    <UnitPrice>
      <Amount>3.55</Amount>
    </UnitPrice>
    <TotalPrice>
      <Amount>8.60</Amount>
    </TotalPrice>
    <TotalValue>
      <Amount/>
    </TotalValue>
  </InvoiceDetail>
  <InvoiceSummary>
    <AllowOrCharge>
      <AllowOrChargeIdentifier Value="Charge"/>
      <AllowOrChargeCode>HandlingCommision</AllowOrChargeCode>
      <AllowOrChargeDescription>HandlingCommision</AllowOrChargeDescription>
      <Amount>10.00</Amount>
    </AllowOrCharge>
    <InvoiceTotals>
      <InvoiceNetValue>
        <Amount>3.55</Amount>
      </InvoiceNetValue>
      <InvoiceGrossValue>
        <Amount>8.60</Amount>
      </InvoiceGrossValue>
      <InvoiceTaxAmount>
        <Amount>0.00</Amount>
      </InvoiceTaxAmount>
      <PrepaidAmount>
        <Amount>0.00</Amount>
      </PrepaidAmount>
      <InvoiceAmountPayable>
        <Amount>13.55</Amount>
      </InvoiceAmountPayable>
    </InvoiceTotals>
    <AllowOrChargeTotals>
      <AllowOrCharge>
        <AllowOrChargeIdentifier Value="Allow"/>
        <AllowOrChargeDescription>Discount</AllowOrChargeDescription>
        <Amount>5.05</Amount>
      </AllowOrCharge>
      <AllowOrCharge>
        <AllowOrChargeIdentifier Value="Charge"/>
        <AllowOrChargeCode>HandlingCommision</AllowOrChargeCode>
        <AllowOrChargeDescription>HandlingCommision</AllowOrChargeDescription>
        <Amount>10.00</Amount>
      </AllowOrCharge>
    </AllowOrChargeTotals>
  </InvoiceSummary>
</Invoice>

As you see, tXML document with predefined structure. An example above is document for invoice.

You can download the file as well: invoice.txml

Tags: tXML xml