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

XPath validation / runner #8

Closed tig2810 closed 7 years ago

tig2810 commented 8 years ago

Hi,

Been using your plugin for a while :-) but i sometimes veer back to XML Spy when i want to verify an XPath.

Would you consider adding an option to type in a query, such as //Invoices/Invoice/Parties/Party[@PartyType='Debtor']/Details/VATNumber and have it jump to the value or similar?

Thanks

uli-weltersbach commented 7 years ago

Hi tig, sorry for not getting back to you!

I'd love to provide that option, but at the same time wonder if there aren't already other plugins out there doing this?

If not, do you have any suggestions/requirements as to how this feature should work? E.g.

  1. I'd like to use the context menu to open up a text box which allows me to type/paste an XPath.
  2. Whenever I change the text value, the view jumps to the first matching element. (Not sure if possible).
tig2810 commented 7 years ago

Hi Uli, I'm prettry sure you are the only person providing an xpath plugin :-)
I have uploaded a screenshot from another app to show the concept. Let me know what you think? I was thinking, after typeing the xpath, it would jump to the value or show not found. Thanks ![Uploading 2016-11-11_20-12-15.jpg…]()

tig2810 commented 7 years ago

2016-11-11_20-12-15

uli-weltersbach commented 7 years ago

I'll see if I can come up with something, it's my first time attempting to implement something dialog'ish in a VS extension. I'll post an update as soon as I have some sort of prototype.

uli-weltersbach commented 7 years ago

Hi tig, I just released v4.0.0 of the extension which includes an XPath runner, so you can simply update the extension via Visual Studio.

The styling of the XPath runner search results doesn't match Visual Studio, but other than that it should be usable (i.e. can evaluate most stuff incl. summation results etc., search results can be clicked to navigate).

Let me know what you think.

tig2810 commented 7 years ago

Hi Uli, It's great! Thanks :-) I will use and let you know if i have any issues or more ideas. Working perfectly for what i have tried so far. Thanks very much.