XML::LibXML, namespaces and findvalue
问题 I'm using XML::LibXML to parse an XML document with a namespace. I therefore use XML::LibXML::XPathContext to findnodes using the XPath //u:model . This correctly returns 3 nodes. I now would like to use findvalue on the 3 returned XML::LibXML::Element objects, but am unable to determine a working method/xpath. As an alternative, I iterate on the children and match against the nodeName directly, but this is less than ideal: use strict; use warnings; use XML::LibXML; use XML::LibXML: