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

Thank you. If I understand, your suggested XPath uses a wildcard for the namespace prefix, the "*" in "//*:data". Will give this a try. I think I follow the helper logic and will give it a try as well.

  • Comment on Re^2: XML::LibXML with namespace with no prefix

Replies are listed 'Best First'.
Re^3: XML::LibXML with namespace with no prefix
by Anonymous Monk on Dec 04, 2015 at 01:30 UTC

    . 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]