资 源 简 介
EDI is a collection of message transmission formats used primarily in electronic business-to-business (B2B) transactions where the implementation pre-dates the use of an XML-based format.
EDI specifications exist for a whole range of transactions, most covering those needed to implement ERP in association with suppliers.
libedi aims to be as generic and flexible as possible, because each of the main EDI variants in widespread usage (EDIFACT, TRADACOMS, ANSI ASC X12, ODETTE) have different syntax rules.
libedi does not concern itself with the transmission or reception of EDI interchanges themselves, simply with parsing them into an easily-digestible form, or generating them programatically.
At present, libedi only performs a “low level” parse of an interchange: the result is a structure containing one or more segments, each containing one or more data elements (of which the first is treated as the segment"s tag), in the order