用于选择所有具有属性 A 的元素的 XPath 表达式是什么?
const char* xpath = "//\*/\*[@A]"
This XPath selects all elements that have an A attribute:
//*[@A]