http://www.perlmonks.org?node_id=757936


in reply to Re^2: Xml::Twig:Xpath Xpath expression error
in thread Xml::Twig:Xpath Xpath expression error

The thing is, there is no direct textual content in any of the FlowRater elements, so text() is empty, hence //OverallConnectionPoolStatus/FlowRater/text() won't return much.

//OverallConnectionPoolStatus/FlowRater/Name/text() OTOH, will indeed give you the contents of the Name elements, if you write, for example: print map { $_ } $section->findnodes( q{//OverallConnectionPoolStatus/FlowRater/Name/text()} );.