mush4brains has asked for the wisdom of the Perl Monks concerning the following question:
...where a variable $save captures the value of each A's idref attr and finds descendant B's with id attr of that value.@nodes = $xp->findnodes("//A[$save = @idref]//B[@id = $save]");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::XPath and variables
by Zaxo (Archbishop) on Sep 13, 2002 at 15:42 UTC | |
|
Re: XML::XPath and variables
by mirod (Canon) on Sep 13, 2002 at 16:31 UTC | |
by mush4brains (Acolyte) on Sep 13, 2002 at 17:54 UTC | |
by mirod (Canon) on Sep 13, 2002 at 18:21 UTC |