in reply to XML Path and Perl
Do you want the first child? The last child? All the kids? If just the first:
If just the last:my $xref = $row->find('AD[1]/@XREF')->string_value;
If all ... well ... that's where my XPATH foo breaks down.my $xref = $row->find('AD[last()]/@XREF')->string_value;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML Path and Perl
by Anonymous Monk on Feb 25, 2008 at 20:40 UTC | |
|
Re^2: XML Path and Perl
by Anonymous Monk on Feb 25, 2008 at 20:33 UTC | |
by derby (Abbot) on Feb 25, 2008 at 20:42 UTC | |
by Anonymous Monk on Feb 25, 2008 at 20:55 UTC | |
by derby (Abbot) on Feb 25, 2008 at 23:26 UTC | |
by Anonymous Monk on Feb 26, 2008 at 02:43 UTC |