Top "Xpath" questions

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

XPath: Get parent node from child node

I need get the parent node for child node title 50 At the moment I am using only //*[title="50"] How could …

xml xpath
xpath find if node exists

Using a xpath query how do you find if a node (tag) exists at all? For example if I needed …

xslt xpath expression
XSLT string replace

I don't really know XSL but I need to fix this code, I have reduced it to make it simpler. …

xslt xpath replace xslt-1.0 xpath-1.0
How to use XPath in Python?

What are the libraries that support XPath? Is there a full implementation? How is the library used? Where is its …

python xml dom xpath python-2.x
XPath to select Element by attribute value

I have following XML. <?xml version="1.0" encoding="UTF-8"?> <Employees> <Employee id="3"> <age>40&…

xml xpath
How to parse XML in Bash?

Ideally, what I would like to be able to do is: cat xhtmlfile.xhtml | getElementViaXPath --path='/html/head/title' | …

xml bash xhtml shell xpath
How to concat a string to xsl:value-of select="...?

<a> <xsl:attribute name="href"> <xsl:value-of select="/*/properties/property[@name='report']/@value" /> </…

xslt xpath
XPath with multiple conditions

What XPath can I use to select any category with a name attribute specified and any child node author with …

xml xslt xpath
How can I select checkboxes using the Selenium Java WebDriver?

How can I check the checkboxes using an id or XPath expression? Is there a method similar to select by …

selenium webdriver selenium-webdriver xpath
XPath: select text node

Having the following XML: <node>Text1<subnode/>text2</node> How do I select either …

xml xpath selection