Help for this page

Select Code to Download


  1. or download this
    /mdc/md/mi/mt[contains(.,"VAL")]
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        my $rs = $book->findnodes("../mv/r[$order]");
        say join ', ', map $_->textContent, $book, @$rs;
    }
    
  3. or download this
    open file.xml ;
    for /mdc/md/mi/mt[xsh:match(.,'^VAL[0-9]+')] {
        my $order = 1 + count(preceding-sibling::mt) ;
        echo xsh:join(', ', (.), ../mv/r[$order]) ;
    }