uli-weltersbach / XPathTools

A Visual Studio Extension which can run any XPath and XPath function; navigates through results at the click of a button. Can show and copy any XPath incl. XML namespaces, avoiding XML namespace induced headaches. Keeps track of the current XPath via the statusbar.
41 stars 4 forks source link

How do I configure to show an index based xpath in my status bar? #16

Closed jbuedel closed 7 years ago

jbuedel commented 7 years ago

How do I configure my status bar to show an index based xpath?

That is, I see this... /Orders/Order/Job/Part/BundleNumber

... but I want this... /Orders[1]/Order[6]/Job[5]/Part[1]/BundleNumber[1]

Thanks.

uli-weltersbach commented 7 years ago

Hi Josh

That's not currently supported. I should be able to implement it without much hassle, so it'll be configurable via the options page. I'll likely have time over the weekend.

jbuedel commented 7 years ago

Great! Thanks.

uli-weltersbach commented 7 years ago

Hi Josh

This should be implemented now, let me know what you think.

jbuedel commented 7 years ago

That's perfect Uli, thanks.

Just in case you're curious my use case is that I was trying to determine if the same part number appeared in multiple orders. Now I can watch for changes in the status bar as I do a normal search through all instances of the part number.

uli-weltersbach commented 7 years ago

Glad it's working! Feel free to write a review if you like ;)

I'm wondering whether the XPath Workbench could help finding duplicates.

jbuedel commented 7 years ago

I think it could, yes. If the workbench allowed the absolute path value as a (optional) column that would have worked even better.