Help for this page
use strict; use XML::LibXML; ... # via findnodes warn 'q:* nodes are ', join (',', map {$_->nodeName} $doc->documentEle +ment->findnodes('//q:*')), "\n";
<?xml version="1.0"?> <q:one xmlns:q="http://www.example.com"> ... namespace of q:two is http://www.example.com namespace of q:three is q:* nodes are q:one,q:two