in reply to Re: XML::Xpath - Can I get the XPath of the current node?
in thread XML::Xpath - Can I get the XPath of the current node?
If there is two+ nodes of the same name, you should be able to do a preceding sibling (or previous sibling) on the context node and count.