Top "Xpath" questions

The primary purpose of XPath is to address parts of an XML document.

Is there a JSON equivalent of XQuery/XPath?

When searching for items in complex JSON arrays and hashes, like: [ { "id": 1, "name": "One", "objects": [ { "id": 1, "name": "Response 1", "objects": [ // etc. }] } ] …

javascript json xpath xquery
Find position of a node using xpath

Anyone know how to get the position of a node using xpath? Say I have the following xml: <a&…

xpath
how to use XPath with XDocument?

There is a similar question, but it seems that the solution didn't work out in my case: Weirdness with XDocument, …

c# .net xml xpath linq-to-xml
XPath selecting a node with some attribute value equals to some other node's attribute value

<grand id="grand"> <parent> <child age="18" id="#not-grand"/> <child age="20" id="#grand"/> &…

xpath
What is the difference between cssSelector & Xpath and which is better with respect to performance for cross browser testing?

I am working with the Selenium WebDriver 2.25.0 on multilingual web application & mainly test the page content (For different languages …

selenium selenium-webdriver xpath css-selectors webdriver
case-insensitive matching in xpath?

For example, for the xml below <CATALOG> <CD title="Empire Burlesque"/> <CD title="empire burlesque"/&…

xml xpath
XPath: difference between dot and text()

My question is about specifics of using dot and text() in XPath. For example, following find_element lines returns same …

selenium xpath
XPath test if node value is number

How can I check if a node value is a number using XPath? Any ideas?

xpath
XPath Query: get attribute href from a tag

I want to use XPath to get the href attribute from an a-tag, but it has two occurrences within the …

html xpath domdocument
Click a button with XPath containing partial id and title in Selenium IDE

Using Selenium IDE, I'm trying to click a button within a table on a webpage using XPath with a partial …

xpath selenium selenium-ide