Class::XPath 1.2, a gift from the sea

samtregar on 2003-08-20T16:56:53

I just released Class::XPath 1.2. It contains two new features, both of which came to me from Tim Peoples. First, you can now get at attribute values using XPath syntax:

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