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

    Test::XML::Order 1.01

    Download button

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

    License / Price:

    Last Updated:

    Category:
    G. Allen Morris III | More programs
    Perl Artistic License / FREE
    April 22nd, 2008, 11:09 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::XML::Order description

    A Perl module to compare the order of XML tags in perl tests.

    Test::XML::Order is a Perl module to compare the order of XML tags in perl tests.

    SYNOPSIS

    use Test::XML::Order tests => 3;
    is_xml_in_order( '', '' ); # PASS
    is_xml_in_order( '', '' ); # FAIL
    isnt_xml_in_order( '', '' ); # PASS


    This module contains generic XML testing tools. See below for a list of other modules with functions relating to specific XML modules.

    FUNCTIONS

    is_xml_in_order ( GOT, EXPECTED [, TESTNAME ] )

    This function compares GOT and EXPECTED, both of which are strings of XML. The comparison works only on the order of the tags, attributes are ignored.

    Returns true or false, depending upon test success.

    isnt_xml_in_order( GOT, MUST_NOT_BE [, TESTNAME ] )

    This function is similar to is_xml_in_order(), except that it will fail if GOT and MUST_NOT_BE have elements in the same order.

    NOTES

    Please note the following about Test::XML::Order.

    The package does not check that the input is well formed XML. You should use Test::XML or a similar package if you want to make sure the XML is well formed.
    Only the order of tags are checked, so

    is_xml_in_order('< a a="b"/ >x< b >< /b >', '< a/ >< b a="c" >asdf< /b >');

    passes as the inputs have the same order: '< a/ >< b/ >'.

    The tree structure is tested so the the test below passes.

    isnt_xml_in_order('< a >< b/ >< /a >', '< a/ >< b/ >');

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    compare XML tags | Perl tests | Perl module | tests | compare | XML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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