The basics of XPath for web scraping
trickster.dev
trickster.dev
Nope. Both HTML and XML are based on SGML. You can use XPath to traverse/query a DOM, though. While more powerful still, it's not clear XPath is better than CSS selectors for scraping and/or Selenium-like testing when CSS is already ubiquitous in web development.