my @titles = $story->match('/page/@title');
Second, you can now refer to the current node with '.':
my $self = $story->match('.');
my $page_one = $story->match('./page[0]');
A couple steps closer to full XPath supoprt, and I didn't have to write a line of code, documentation or tests to get there! Thanks Tim!
-sam
Class::XPath 1.2, a gift from the sea 0 Comments More | Login | Reply /