Help for this page

Select Code to Download


  1. or download this
    use strict;
    use XML::XPath;
    
    ...
    my $path = '/SuperItem/MajorItems[2]/MinorItem';
    
    print $xp->findnodes_as_string($path);
    
  2. or download this
    <MinorItem>
       <Item>Suitcase</Item>
    </MinorItem>