Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    XML::Edifact 0.47

    Download button

    No screenshots available
    Downloads: 805  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Michael Koehne | More programs
    Perl Artistic License / FREE
    October 31st, 2007, 04:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::Edifact description

    XML::Edifact is a Perl module to handle XML::Edifact messages.

    XML::Edifact is a Perl module to handle XML::Edifact messages.

    SYNOPSIS

    use XML::Edifact;
    use IO::File;

    # open the database
    XML::Edifact::open_dbm();

    # read edi message
    XML::Edifact::read_edi_message("some.edi");

    # print xml to standout
    print &XML::Edifact::make_xml_message();

    # print xml to somefile
    $xml=new IO::File(">some.xml");
    XML::Edifact::make_xml_message($xml);
    $xml->close();

    # close database
    XML::Edifact::close_dbm();
    0;
    ---------------------------------------
    use XML::Edifact;
    use IO::File;

    # open the database
    XML::Edifact::open_dbm();

    # read xml message
    XML::Edifact::read_xml_message($ARGV[0]);

    # print edi to standout
    XML::Edifact::make_edi_message();

    # print edi to somefile
    $edi=new IO::File(">some.edi");
    XML::Edifact::make_edi_message($edi);
    $edi->close();

    # close database
    XML::Edifact::close_dbm();
    0;

    XML-Edifact started as Onyx-EDI which was a gawk script. XML::Edifact-0.4x still shows its bad ancestry (a2p) in some places.

    The current module is able to generate some SDBM files for the directory pointed to 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 an EDIFACT message into a buffer global to the package, and will print this message as XML on STDOUT. The second usage will do the opposite.

    Those two files will be installed as edi2xml and xml2edi in your local bin directory. Use those two scripts and dont touch the internal affairs of the module. An object-oriented module is planned for the next release!

    I'm calling this 0.4x track an interim, because I'm just saving a stable state (I hope) before I start to muddle all things around while going on an object(ive) raid.

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

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    XML::Edifact messages | message handler | Perl module | XML::Edifact | message | handler

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM