in reply to Xpath not working
Yep, what the other Anon said. Here's the relevant code on how to actually do it:
my $xpc = XML::LibXML::XPathContext->new($doc); $xpc->registerNs('p', 'http://www.crtp.it'); $xpc->registerNs('p2', 'http://www.crpt.com'); my $finded = $xpc->findnodes("/p2:login/p:utenti[p:email='$email' and +p:password='$digestpass']");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Xpath not working
by Anonymous Monk on Mar 27, 2014 at 20:50 UTC |