in reply to newbie : XPath - including element attributes

Looking at the docs for XML::Twig, it says:

Return a unique XPath expression that can be used to find the element again.
(emphasis added). To me that says simply that it may not be the same xpath that you used to get there, just one that will work to get this one again.

In fact, if your get_xpath returns multiple entries, I would expect each one to give a different xpath answer.

  • Comment on Re: newbie : XPath - including element attributes