liveBook · Manning

XPath

XPath is a W3C language for navigating and selecting nodes in XML and other structured document trees.

How 3 Manning books explain it

BDD in Action, Second Edition

An XPath expression is a path query that selects nodes in a structured document such as an HTML or XML document.

How it is used
Locates HTML elements for WebDriver acceptance tests when their position, attributes, or text provide the useful identifier.
How deep it goes
Explains common expressions through WebDriver calls and element examples, without developing XPath beyond the patterns needed for page interaction.
Examples
Uses destination titles and prices, a welcome heading, and registration preference labels as selection targets.
What you can do after
Apply it via WebDriver `By.xpath()` to find elements by attributes or text and navigate to related elements.

Read how BDD in Action, Second Edition explains XPath →

Practical Automation with PowerShell: Effective scripting from the console to the cloud

An XPath query is an expression defined by the XPath language for selecting nodes in an XML or HTML document tree.

How it is used
Extracts Microsoft Update Catalog search and detail-page data during PowerShell web scraping.
How deep it goes
Demonstrates browser-assisted query design, SelectNodes, SelectSingleNode, and nested-element traversal without teaching XPath language syntax broadly.
Examples
Uses Microsoft Update Catalog KB4521858 results, dynamic link ids, architecture, supported products, and supersedence links.
What you can do after
Apply it via PowerHTML to select result links and detail-page values from converted HTML.

Read how Practical Automation with PowerShell: Effective scripting from the console to the cloud explains XPath →

100 SQL Server Mistakes and How to Avoid Them

XPath is a W3C language for navigating and selecting nodes in an XML document.

How it is used
Navigates XML hierarchies to select rows and map parent values during SQL Server OPENXML() shredding.
How deep it goes
Defines navigation, row selection, and ../ traversal but stops short of broader XPath syntax.
Examples
Uses nested employee, contract, and skill XML with upward ../ mappings.
What you can do after
Apply it via OPENXML() to select XML rows and retrieve values from higher hierarchy levels.

Read how 100 SQL Server Mistakes and How to Avoid Them explains XPath →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.