I don't believe you can get that information with XML::XPath.
Did you read the XML::Twig FAQ I would like XML::Twig to report line/column number in the original file? The solution given should give you the line number of the opening tag.
In reply to Re: Xpath and line number
by mirod
in thread Xpath and line number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |