Learning XML::LibXML::XPathContext

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm learning this module today and I'm getting 'invalid expression' every time I
run it. The error seems to be related to my syntax/code rather than the contents
of the test.xml file. Any help would be greatly appreciated, thank you in

use warnings;
use Data::Dumper;
use XML::LibXML;

my $parser = XML::LibXML->new();
my $xc = $parser->parse_file("test.xml");

my $xpc = XML::LibXML::XPathContext->new($xc);

my @x = $xpc->find('/Something//Child::*');

Site Timeline