in reply to Re^3: Comparing nodes in LibXML
in thread Comparing nodes in LibXML

You can get the prefix at the same time
my ($prefix,$name) = ( $node->prefix(), $node->localname() );

Replies are listed 'Best First'.
Re^5: Comparing nodes in LibXML
by worik (Sexton) on Sep 03, 2015 at 20:16 UTC

    The prefix does not help as it is not unique