in reply to Re^2: XML::LibXML with namespace with no prefix
in thread XML::LibXML with namespace with no prefix

. If I understand, your suggested XPath uses a wildcard for the namespace prefix, the

Correct, thats what I said, but I got confused and I made a mistake

This will work for sure

//*[ local-name() = 'data' and attribute:key="$weightKey" ] [0]