Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy "/Element1/Element2/@attribute2" XPath #43

Open
andreypolyak opened this issue Jun 27, 2019 · 3 comments
Open

Copy "/Element1/Element2/@attribute2" XPath #43

andreypolyak opened this issue Jun 27, 2019 · 3 comments

Comments

@andreypolyak
Copy link

Hi,
The package looks very good, thanks for it!

But I can't figure out how to set up it to copy hierarchy XPath with attribute at the end.
Imagine that we have this XML document:

<Element1 attribute1="Some value">
	<Element2 attribute2="Some other value"/>
</Element1>

Is it possible to copy this hierarchy XPath /Element1/Element2/@attribute2?

@keith-hall
Copy link
Collaborator

Hi, thanks for the kind words and the question. I don't remember off the top of my head, I will investigate when I get chance - but if its not possible currently, I see no reason why we can't add support for it :)

@keith-hall
Copy link
Collaborator

Sorry for the slow reply, I can confirm that this is unfortunately not possible at the moment, and will require some changes to the plugin code. But this is definitely a useful feature to have, especially so that one can "go to" an attribute using xpath and then copy the current xpath and be sure it will go to the same place etc.

@andreypolyak
Copy link
Author

Hi Keith,
thanks for your response!
I'd appreciate this feature very much. For reference, you can use the Chrome extension called XML Tree. It uses the same approach to construct and copy XPath.

Thank you,
Andrey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants