请输入您要查询的百科知识:

 

词条 XML/EDIFACT
释义

  1. Use-cases

  2. Example 1: EDIFACT source code

  3. Example 2: XML/EDIFACT source code

  4. Example 3: XML/EDIFACT in a browser

  5. External links

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.

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:

BYCST995591Candy IncSirup street 15Sugar Town55555

Example 3: XML/EDIFACT in a browser

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

External links

  • UN/EDIFACT Main Page
  • ISO/TS 20625:2002 - This document by the ISO costs CHF 158,00 to access.
  • www.edifabric.com - A .NET framework for converting EDIFACT and X12 messages into XML and vice versa.
  • [https://github.com/metormote/edifact-xml Edifact-XML] - A free complete java parser library for converting UN EDIFACT messages to XML.
  • [https://sourceforge.net/projects/edifactconverter/?source=navbar Edifact<->XML Converter plus Edifact xsd generator] - UN/EDIFACT<->ISO/TS 20625 XML.
{{DEFAULTSORT:XML EDIFACT}}

2 : XML-based standards|EDI

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 3:43:35