Check out XML::Twig:
use XML::Twig; my $t= XML::Twig->new( twig_handlers => { 'editor[@role="editor"]' => sub { print $_->text() }, }); $t->parsefile( 'yourfile.xml' );
In reply to Re: perl xpath extraction
by wind
in thread perl xpath extraction
by lionofmasses
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |