Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict; use warnings; use XML::XPath;
    my $xpob = XML::XPath->new('xml' => '<SuperItem>
    ...
    # ... so the abov line takes the 2nd <Item /> elem (Bcuz Perl is 0-bas
    +ed)
    # && traverses down to its 1st child-node (this time no more nested el
    +emz
    # but just a TextNode as the only child) to print that value: "Suitcas
    +e"