http://www.perlmonks.org?node_id=1146532


in reply to Re: How can I browse & list XPATH of a XML Message?
in thread How can I browse & list XPATH of a XML Message?

I suggest that you use the ->xpath method of the elements to find the path together with the numeric indexes. Eg.

my $xpath_with_atts = $node->xpath;