![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: Xml::Twig:Xpath Xpath expression errorby ramrod (Curate) |
on Apr 14, 2009 at 14:36 UTC ( #757402=note: print w/replies, xml ) | Need Help?? |
After reviewing your actual XML - it looks like your XPath is incorrect for your intentions. I don't see any attriubes in your XML.
Try something more like //OverallConnectionPoolStatus/FlowRater/Name/text() to reference your information. The previous XPath's are attempting to search for attributes in the FlowRater node. What you actually have is a child node called Name with some information in it. As far as why this works in some modules, and not in others I would postulate that the designer included this as a "feature" to help others out. - Or maybe you found a bug.
In Section
Seekers of Perl Wisdom
|
|