Google News
logo
XPath - Interview Questions
What is an XPath query?
An XPath query allows you to select nodes from a document by applying expressions. For example, you can ask for all of the elements with a “text” tag and then filter by opening tags.
 
An XPath query is more complex than an XPath location path because it requires some form of logic or searches to identify what nodes are desired. Queries use full expressions that result in boolean values – true/false – which return nodes when the condition is satisfied.
Advertisement