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()} );.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Xml::Twig:Xpath Xpath expression error
by leonidlm (Pilgrim) on Apr 16, 2009 at 11:48 UTC | |
by mirod (Canon) on Apr 16, 2009 at 11:57 UTC | |
by leonidlm (Pilgrim) on Apr 16, 2009 at 12:06 UTC |
In Section
Seekers of Perl Wisdom