When I open an xml file in Visual Studio and browse it, I want to get the xpath of a certain node at the cursor like right click and choose "get xpath from this node" or something like that. How can we do that in Visual Studio 2010 or which tools/addons to use to do that?
Hope to hear from you all.
I am unsure of a Visual Studio tool that does this (Although I am sure there is one). For me, I use Notepad++ (Is there anything it can't do!?).
This will only be able to give you the very basic XML tree traversal, but it's a start.
No tool will be able to generate any sort of complicated xPath for attribute checking etc. For those things often it is trial and error. You can use an online xPath tester to test your expressions against your XML anytime. Something like http://www.freeformatter.com/xpath-tester.html should be a great help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With