in reply to Re^2: Using XPaths with XML::LibXML and XPathContext
in thread Using XPaths with XML::LibXML and XPathContext

$xpc->registerNS($prefix, $ns) defines a prefix. (Not the only one, though.) You can't use a prefix you haven't defined. But it's possible to build XPaths that don't use prefixes using namespace-uri() and local-name().