in reply to Re^5: xml::twig gathering all element and att and its value question
in thread xml::twig gathering all element and att and its value question
my @nodes = $doc->findnodes("/books/book/authors/author/ firstname[text()='Tom']/../ lastname[text()='Chris']/ ../../../title/text()"); for my $node (@nodes) { print $node->data, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: xml::twig gathering all element and att and its value question
by GrandFather (Saint) on Nov 12, 2008 at 20:10 UTC | |
by convenientstore (Pilgrim) on Nov 13, 2008 at 06:13 UTC | |
by convenientstore (Pilgrim) on Nov 16, 2008 at 02:48 UTC | |
by Anonymous Monk on Nov 16, 2008 at 04:23 UTC | |
by convenientstore (Pilgrim) on Nov 16, 2008 at 04:44 UTC |