Return xpath of selected xml element or attribute
Submitted by Saturday, 29 September, 2007 - 01:05
on
Hi all,
Is it possible to write a macro that can return the xpath of the element or attribute the cursor is located at?
For example, given the following xml document, and assuming the cursor is located on the Target element, the macro would return the string: /Links/Link/Target
/htdocs/images/coffee_cup.jpg
I can not find this functionality in the XML plugin or elsewhere.
Possible?
Thanks,
Paul