Top "Xpath" questions

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

XSL if test starts-with

Given this piece of XML <dc:date>info:eu-repo/date/embargoEnd/2013-06-12</dc:date> <…

xslt xpath xpath-2.0
Selenium WebDriver: clicking on elements within an SVG using XPath

I have an SVG object with a few circle and rectangle elements. Using webdriver, I can click on the main …

java firefox xpath selenium webdriver
XML xpath, get the parent element till a specific element

I'm looking for the right xpath syntax to get a specific parent of an element. Example: root |- div | | | |----??? …

xpath element parent
Generate/get xpath from XML node java

I'm interested in advice/pseudocode code/explanation rather than actual implementation. I'd like to go trough xml document, all of …

java xml xslt xpath
XPath to Parse "SRC" from IMG tag?

Right now I successfully grabbed the full element from an HTML page with this: //img[@class='photo-large'] for example it …

html parsing xpath screen-scraping
Need to remove <?xml version="1.0" encoding="utf-16"?> from the xml

Hi i am generating a xml by appying the xsl to a xml input. I need the output without this …

xml xslt xpath xslt-1.0
How do I use XPath in Nokogiri?

I have not found any documentation nor tutorial for that. Does anything like that exist? doc.xpath('//table/tbody[@…

ruby xpath nokogiri
How to select all elements with a specific attribute? with TinyXPath

What is the XPath expression for selecting all elements with attribute A? const char* xpath = "//\*/\*[@A]"

xml xpath tinyxpath
What is the difference between name() and local-name()?

I don't really understand the difference between the XPath functions name and local-name. Could you give an example of a …

xml xpath
How to find parent elements by python webdriver?

Is there any methods for python+selenium to find parent elements, brother elements, or child elements just like driver.find_…

python selenium xpath selenium-webdriver parent-child