Get path to current XML node?

A coworker asked for this feature, wondering if Visual Studio or ReSharper
could help, and I know I've wanted this in the past... but haven't seen any
easy way to do it:  extract the XML path (XPath) to the node the cursor is
on.

There have been many times when I just want to get the path to where a
certain node is, so I can just paste that path into an XPath query string or
something similar.  Is there an easy way to do this?

If not, can ReSharper be enhanced to provide this functionality?  I already
get a little pencil pop-up that offers several useful options... it'd be
nice if "show path to current node" would be there, or "copy path to current
node to clipboard" or however you want to implement it.

Any suggestions or comments?


2 comments

Hello Paul,

ReSharper doesn't have such functionality at the moment, but there's already
a feature request in our tracker: http://youtrack.jetbrains.net/issue/RSRP-138366
and you're welcome to vote for it. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

A coworker asked for this feature, wondering if Visual Studio or
ReSharper could help, and I know I've wanted this in the past... but
haven't seen any easy way to do it:  extract the XML path (XPath) to
the node the cursor is on.

There have been many times when I just want to get the path to where a
certain node is, so I can just paste that path into an XPath query
string or something similar.  Is there an easy way to do this?

If not, can ReSharper be enhanced to provide this functionality?  I
already get a little pencil pop-up that offers several useful
options... it'd be nice if "show path to current node" would be there,
or "copy path to current node to clipboard" or however you want to
implement it.

Any suggestions or comments?



0

Thanks!  I voted for it... I actually tried several other editors that
worked with XML, and none of them seemed to have this feature either, so
this would be a good feather in ReSharper's cap, and shouldn't be TOO
difficult to implement :)



"Andrew Serebryansky"  wrote in message
news:c8a898ddceeb8cda61b5215a7b7@news.intellij.net...

Hello Paul,

ReSharper doesn't have such functionality at the moment, but there's already
a feature request in our tracker:
http://youtrack.jetbrains.net/issue/RSRP-138366
and you're welcome to vote for it. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

A coworker asked for this feature, wondering if Visual Studio or
ReSharper could help, and I know I've wanted this in the past... but
haven't seen any easy way to do it:  extract the XML path (XPath) to
the node the cursor is on.

>

There have been many times when I just want to get the path to where a
certain node is, so I can just paste that path into an XPath query
string or something similar.  Is there an easy way to do this?

>

If not, can ReSharper be enhanced to provide this functionality?  I
already get a little pencil pop-up that offers several useful
options... it'd be nice if "show path to current node" would be there,
or "copy path to current node to clipboard" or however you want to
implement it.

>

Any suggestions or comments?

>

0

Please sign in to leave a comment.