in reply to Re: getAttribute() of XML::XPath::Node
in thread getAttribute() of XML::XPath::Node

I have found the documentation of XML::XPath to be spotty so you generally have to dig around the code from time to time to verify that the thing you are requesting is what you expect.

Using the above example, I wish they had used a die statement rather than a return statement because it implies something that is not there. I normally use an empty return as a sign of failure in my code, but you cannot rely upon that assumption in cpan or other peoples code.

  • Comment on Re^2: getAttribute() of XML::XPath::Node