in reply to Re^2: Select Node
in thread Select Node
You can build the search path using variables like this
my $x = 2; my $y = $x * 2; my $xpath = "/find/find/work[\@eu='$y']"; print "Searching for $xpath\n"; my $twig = XML::Twig::XPath->new( twig_roots => { $xpath => \&work, }, );
I don't see sub chapter in the XML
poj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Select Node
by Arenas (Novice) on Feb 20, 2016 at 16:15 UTC | |
by poj (Abbot) on Feb 20, 2016 at 17:32 UTC |