In sample XML draft:
<unit name="Alpha"> <unit name="One"> █1 </unit> <unit name="Two"> █2 </unit> </unit>
I want to find any way how to display XPath containing
unit@name="Alpha"/unit@name="One"when the caret is at position █1
unit@name="Alpha"/unit@name="Two"when the caret is at position █2
so that I can edit large XML files without collapsing their outline and reading name attributes by myself.
Ideally, I would like to find a way to get such an XPath in some free text editor in Windows.