my $xpc = 'XML::LibXML::XPathContext'->new; $xpc->registerNs('e', 'http://www.earthstats.org/XFDL/Custom'); my @nodes = $xpc->findnodes('e:EARTHSTATS', $xml->documentElement);