![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^3: Xml::Twig:Xpath Xpath expression errorby mirod (Canon) |
on Apr 16, 2009 at 11:03 UTC ( #757936=note: print w/replies, xml ) | Need Help?? |
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()} );.
In Section
Seekers of Perl Wisdom
|
|