Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    XML::Merge 1.2.565EgGd

    Download button

    No screenshots available
    Downloads: 537  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    12 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Pip Stuart | More programs
    Perl Artistic License / FREE
    February 3rd, 2008, 22:58 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    XML::Merge description

    XML::Merge is a Perl module that can merge XML documents.

    XML::Merge is a Perl module that can merge XML documents.

    This documentation refers to version 1.2.565EgGd of XML::Merge, which was released on Sun Jun 5 14:42:16:39 2005.

    SYNOPSIS

    use XML::Merge;

    # create new XML::Merge object from MainFile.xml
    my $merge_obj = XML::Merge->new('filename' => 'MainFile.xml');

    # Merge File2Add.xml into MainFile.xml
    $merge_obj->merge( 'filename' => 'File2Add.xml');

    # Tidy up the indenting that resulted from the merge
    $merge_obj->tidy();

    # Write out changes back to MainFile.xml
    $merge_obj->write();

    This module inherits from XML::Tidy which in turn inherits from XML::XPath. This ensures that Merge objects' indenting can be tidied up after any merge operation since such modification usually spells the ruination of indentation. Polymorphism allows Merge objects to be utilized as normal XML::XPath objects as well.

    The merging behavior is setup to combine separate XML documents according to certain rules && configurable options. If both documents have root nodes which are elements of the same name, the documents are merged directly. Otherwise, one is merged as a child of the other. An optional XPath location can be specified as the place to perform the merge. If no location is specified, the merge is attempted at the first matching element or is appended as the new last child of the other root if no match is found.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    merge documents | XML documents | Perl module | merge | XML | documents

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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