How to select all elements with a specific attribute? with TinyXPath

69.7k Views Asked by At

What is the XPath expression for selecting all elements with attribute A?

const char* xpath = "//\*/\*[@A]"
1

There are 1 best solutions below

0
On BEST ANSWER

This XPath selects all elements that have an A attribute:

//*[@A]