I find XPath difficult to get my head around at times and am looking for a tools that I can point at a line in an xml config file an it will tell me the xpath to the attributes that I need.
Any help with this would be much appreciated>
We can get XPath and CSS selector of Web element using Firebug. Let's see how. Do right click on web element which you want to locate and select Inspect Element with Firebug. It will highlight the code.
Open the website that you want to inspect. ... Click the web page element that you want to inspect. ... Right-click the highlighted code in the Firebug panel. ... Select "Copy XPath" from the menu.
XPath is defined as XML path. It is a syntax or language for finding any element on the web page using the XML path expression. XPath is used to find the location of any element on a webpage using HTML DOM structure.
I've used the "Buba XPath builder" to do this. SketchPath (now XMLQuire) may also do the trick:
http://qutoric.com/xmlquire/
Visual XPath is full of win.
If you use firefox you might want to check out XPather. Even if you find another tool, this is a handy thing to have around when you just want to check something out quickly if you are like me and almost always have a browser window already open.
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