- or download this
/mdc/md/mi/mt[contains(.,"VAL")]
- or download this
#!/usr/bin/perl
use warnings;
...
my $rs = $book->findnodes("../mv/r[$order]");
say join ', ', map $_->textContent, $book, @$rs;
}
- 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]) ;
}