Top "Xpath" questions

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

Xpath "ends-with" does not work

I am trying to find an input element with dynamic id name always ending with "register". So far I tried …

xpath ends-with
Selenium Webdriver finding an element in a sub-element

I am trying to search for an element in a sub-element with Selenium (Version 2.28.0), but selenium des not seem to …

python xpath selenium
How to read attribute of a parent node from a child node in XSLT

Just want to know how to read an attribute of a parent node from a child node in XSLT. code: &…

xslt xpath
Get attribute values from matching XML nodes using XPath query

This doesn't seem like it should be difficult, but I'm stuck currently. I'm trying to get the attribute values for …

c# xml extension-methods xpath xpathnavigator
XPath - Get node with no child of specific type

XML: /A/B or /A I want to get all A nodes that do not have any B children. I've …

xpath
How to use XPath with XElement or LINQ?

Consider the following XML: <response> <status_code>200</status_code> <status_txt>OK&…

.net xml xpath linq-to-xml xelement
Search XML file for nodes with specific attribute value in .NET 2

I found answers for searching XML nodes using LINQ, but I am limited to C# with .NET 2. I want to …

c# xpath visual-studio-2005 .net-2.0
Get text content of an HTML element using XPath?

See this html <div> <p> <span class="abc">Monitor</span> <b&…

html xml xpath html-parsing
Multiple buttons with same type and id

I'm new to Selenium. Below is my code. <input type="submit" id="button" value="Edit"/> I have 3 buttons …

selenium selenium-rc selenium-webdriver xpath
XPath to retrieve text within span

I am trying to figure out the XPath which will retrieve the 'text Data 3' from the following HTML snippet &…

html xpath xpath-2.0