N
Nene
Hi,
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 advance.
#!/usr/local/bin/perl
use warnings;
use Data:
umper;
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::*');
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 advance.
#!/usr/local/bin/perl
use warnings;
use Data:
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::*');