in reply to XML::LibXML with namespace with no prefix

Yes, using XML::LibXML::XPathContext and context nodes is the common way how to handle namespaces in XML::LibXML.

BTW, you can retrieve the first element with

if (my $dataWeightNode = $xpc->findnodes($weightXPATH, $edgeElement)-> +[0]) {
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: XML::LibXML with namespace with no prefix
by dallen16 (Sexton) on Dec 04, 2015 at 01:01 UTC

    Thank you. And good catch on my sloppy / ugly dereferncing of the array reference. Updated my code.