Edival is a simple EDI file parsing & validation library for the EDIFACT and X12 EDI standards. It is a stream-based parser in which an application defines event handlers for structures that the parser will find in a file, e.g. elements and segments.
Be the first to post a text review of edival EDI Parsing & Validation Library. Rate and review a project by clicking thumbs up or thumbs down in the right column.
In addition to multiple bug fixes from the past couple months, release 0.1.8 includes parsing support for the EDIFACT EDI dialect. Usage for EDIFACT is identical to X12. When the parser determines that either an X12 of EDIFACT message is found, a new document start callback function will be called. Similarly, an end document callback will be called upon reaching the final segment of a message or upon premature termination of the message. Feedback or bug reports are welcome as always.
-edifactparser.[ch]: Added new parser module to handle EDIFACT messages. -x12parser.[ch]: Hide data declarations from x12parser.h in x12parser.c. Add calls to start/end document handlers for ISA/IEA segments. Fix bug with size of the delimiter array. This will fix segmentation faults relating to the saved tag ID on the X12 parser. Fix bug with element repetition handling. Remove unnecessary version/release information stored on the parser. Replaced with string-version check to assign the repeat seperator for X12 interchanges greater than or equal to version '00402'. -edival.h: Enable EDIFACT document type. Bump micro version to 8 (for pending release 0.1.8) Add document start/end handlers to signal the beginning and end of a message in the data stream. Add function to retrieve array of a schema node's child nodes. -ediparse.c: Updates to check for EDIFACT headers (UNA/UNB) and pass parsing to the EDIFACT module. -schema.c: Fix bug where the root of the schema tree was not being initialized.
Release Notes: This release contains an enhancement to the edival API that allows for the application program to receive pre-converted numeric values and in the form of a new EDI_DataElement structure. The structure also notifies of the element's type so that the application does not have to worry about consulting the schema once it is loaded. Also, Interchange/Batch standards for X12 data are now rules-based. The standards that were hardcoded several versions ago in the x12 Parser module have been removed. As in any release, there are many code cleanups throughout the library.
Be the first person to add a text review.
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?
Thanks for your review!
Get credit for your review by logging in via OpenID. Click your account provider: