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 answers

0
Mads Hansen On BEST ANSWER

This XPath selects all elements that have an A attribute:

//*[@A]