XPath

XPath (XML Path Language) is a W3C standard query language for addressing parts of an XML document with path expressions, also used to locate elements in HTML documents.

1 articleLast mentioned

XPath (XML Path Language) is a query language for addressing nodes in an XML document with path expressions. It was standardized by the W3C, with version 1.0 becoming a recommendation in 1999. It treats a document as a tree and selects nodes by writing paths to elements, attributes, or text, such as '/html/body/div[2]/a'.

In web development and automation, XPath is widely used alongside CSS selectors to locate specific elements in the DOM of HTML documents. It is used to target elements in browser automation tools, test automation, and web scraping, though path expressions tend to break when page structure changes. It also underlies XML processing technologies such as XSLT and XQuery.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • TinyFish Bets on AI Agents as Customers With 40-Cent Wallet BillingAI Startups ·

    …built AgentQL as a semantic data extractor: it turned raw HTML into structured output using natural-language queries instead of fragile CSS or XPath selectors.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.