my $xc = XML::LibXML::XPathContext->new($doc);
$xc->registerNs('ns', 'xmlapi_1.0');