问题
What is the XPath expression for selecting all elements with attribute A?
const char* xpath = "//\*/\*[@A]"
回答1:
This XPath selects all elements that have an A attribute:
//*[@A]
来源:https://stackoverflow.com/questions/5617692/how-to-select-all-elements-with-a-specific-attribute-with-tinyxpath