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;
In reply to Re: XML Path and Perl
by derby
in thread XML Path and Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |