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

后端 未结 1 581
误落风尘
误落风尘 2021-02-02 04:48

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

const char* xpath = \"//\\*/\\*[@A]\"
1条回答
  •  醉话见心
    2021-02-02 05:36

    This XPath selects all elements that have an A attribute:

    //*[@A]
    

    0 讨论(0)
提交回复
热议问题