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 machine-readable 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 standardized in ISO/TS 20625:2002.
Use-cases
XML/EDIFACT is used in B2B scenarios as listed below:
- 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.
- 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.
- 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.
- Large companies can order goods from small companies via XML/EDIFACT. The small companies use XSLT stylesheets to browse the message content in human readable forms, as shown in Example 3.
Example 1: EDIFACT source code
A name and address (NAD) segment, containing customer ID and customer address, expressed in EDIFACT syntax:
NAD+BY+CST9955::91++Candy Inc+Sirup street 15+Sugar Town++55555'
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 XSLT stylesheet:
External links
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
