The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::Edifact - Perl module to handle XML::Edifact messages.

SYNOPSIS

use XML::Edifact;

        &XML::Edifact::open_dbm();
        &XML::Edifact::read_edi_message($ARGV[0]);
print   &XML::Edifact::make_xml_message();
        &XML::Edifact::close_dbm();
0;

---------------------------------------------------------------

use XML::Edifact;

        &XML::Edifact::open_dbm();
        &XML::Edifact::read_xml_message($ARGV[0]);
print   &XML::Edifact::make_edi_message();
        &XML::Edifact::close_dbm();
0;

DESCRIPTION

XML-Edifact started as Onyx-EDI which was a gawk script. XML::Edifact-0.3x still shows its bad anchesor called a2p in some parts.

The current module is able to generate some SDBM files for the directory pointed by open_dbm by parsing the original United Nations EDIFACT documents during Bootstrap.PL. Those files will be stored during make install.

The first typical usage will read a EDIFACT message into a buffer global to the package, and to print this message as XML on STDOUT. The second usage will do the vice versa.

Those two files will be installed as edi2xml and xml2edi in your local bin directory.

New to XML::Edifact 0.34 are namespace migration and intend handling - take a look at the test.pl of how to use them. BUT HALT - A object oriented syntax is planned for the next release! And I'm calling this release an interim because, I'm just saving a stable state (i hope) before I start to muddle all things around while going on object(ive r)aid.

If you have other EDIFACT files, I would like to include them into the next version. I'm also open to any comments, as told "anything is still in flux" !

AUTHOR

Michael Koehne, Kraehe@Bakunin.North.De

SEE ALSO

perl(1), XML::Parser(3), UN/EDIFACT Draft.