XML/EDIFACT

XML/EDIFACT is an Electronic Data Interchange (EDI) format used in Business-to-business transactions. It allows EDIFACT message types to be used by XML systems.

EDIFACT is a formal, readable language-for-machine description of electronic business documents. It uses a syntax close to delimiter separated files. This syntax was invented in the 1980s to keep files as small as possible. Because of the Internet boom around 2000, XML started to become the most widely supported file syntax. But for example, an invoice is still an invoice, containing information about buyer, seller, product, due amount. EDIFACT works perfectly from the content viewpoint, but many software systems struggle to handle its syntax. So combining EDIFACT vocabulary and grammar with XML syntax makes XML/EDIFACT.

The rules for XML/EDIFACT are defined by ISO TS 20625.

Use-cases

XML/EDIFACT is used in B2B scenarios as listed below:

1) Newer EAI or B2B systems often cannot handle EDI (Electronic Data Interchange) syntax directly. Simple syntax converters do a 1:1 conversion before. Their input is an EDIFACT transaction file, their output an XML/EDIFACT instance file.

2) XML/EDIFACT keeps XML B2B transactions relatively small. XML element names derived from EDIFACT tags are much shorter and more formal than those derived from natural language since they are simply expressions of the EDIFACT syntax. Such formal tags although not semantically understandable, taken from the "EDIFACT modelling language", are readable by B2B experts worldwide if they are conversant in the EDIFACT syntax.

3) A company does not want to invest into new vocabularies from scratch. XML/EDIFACT reuses business content defined in UN/EDIFACT. Since 1987, the UN/EDIFACT library was enriched by global business needs for all sectors of industry, transport and public services. For XML, there are a number of vocabularies, each tailored for their specific user community.

4) Large companies can order goods from small companies via XML/EDIFACT. The small companies use XSL stylesheets to browse the message content in human readable forms - once again provided they understand the EDIFACT syntax.


UNA:+.?*' UNB+UNOB:4::1+SEDIS-SVS+FCS-IFTMIN+20160801:0406+00000000147641' UNH+00040610887346+IFCSUM:D:10A:UN:FORWIN' BGM+610+SI7C44006611669+9' DTM+137:201608010945:203' CNT+7:1.220:KGM' CNT+15:0.006:MTQ' CNT+11:1:NMP' RFF+AOG:0000000062406821' NAD+FW+A3007309::234++Sichuan Tosun Co. Ltd.+No.58, Jianshe North Road+Chengdu+CN-51+610051+CN' NAD+UC+24220553NN++Beijing TTSF Technology Co., Ltd.++Beijing Fengtai+CN-11+100070+CN' CTA+IC' COM+18911356651:TE' COM+18911356658:FX' NAD+PW+A1207968::234++SLC Shanghai Shipping Point+No.500, Dalian Road+Shanghai+CN-31+200080+CN' CTA+IC' COM+86 02167697997:TE' NAD+MR+AU001177::234' NAD+DEQ+A1207968::234++SLC Shanghai Shipping Point+No.500, Dalian Road+Shanghai+CN-31+200080+CN' CTA+IC' COM+86 02167697997:TE' TDT+20++30' DTM+355:20160805:102' RFF+AWM:32000' CNI+1+SI7C44006611669' CNT+7:1.220:KGM' CNT+15:0.006:MTQ' CNT+11:1:NMP' FTX+AAG+++1:1' TOD+1++DDP' LOC+1+:::Beijing Fengtai+100070+CN:162:5' RFF+DQ:SI7C44006611669' DTM+124:20160729:102' RFF+ON:TTSFFA2016223' DTM+4:20160701:102' NAD+UC+24220553NN++Beijing TTSF Technology Co., Ltd.++Beijing Fengtai+CN-11+100070+CN' CTA+IC' COM+18911356651:TE' COM+18911356658:FX' NAD+CZ+A1207968::234++SLC Shanghai Shipping Point+No.500, Dalian Road+Shanghai+CN-31+200080+CN' CTA+IC' COM+86 02167697997:TE' NAD+BY+0024220553++Beijing TTSF Technology:Co. Ltd.+Rm.6661, F6, Bldg Haiyu, No.46,:Fucheng Rd, Haidian Dist+Beijing+CN-11+100036+CN' NAD+P1+AU001177::234' GID+1+1:CT' MEA+WT+AAB+KGM:1.220' DIM+2+CMT:24:17:14' PCI+12+SI7C44006611669001' UNT+47+00040610887346' UNZ+463+00000000147641'

Example 2: XML/EDIFACT source code

The same information content in an XML/EDIFACT instance file:

<S_NAD>
  <D_3035>BY</D_3035>
  <C_C082><D_3039>CST9955</D_3039><D_3055>91</D_3055></C_C082>
  <C_C080><D_3036>Candy Inc</D_3036></C_C080>
  <C_C059><D_3042>Sirup street 15</D_3042></C_C059>
  <D_3164>Sugar Town</D_3164>
  <D_3251>55555</D_3251>
</S_NAD>

Example 3: XML/EDIFACT in a browser

The same XML/EDIFACT instance presented with help of an XSL stylesheet:

External links

This article is issued from Wikipedia - version of the 9/29/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.