Xpath error with not() and ends-with()

前端 未结 4 1926
时光说笑
时光说笑 2021-01-05 11:58

I have the following Xpath expression:

//*[not(input)][ends-with(@*, \'Copyright\')]

I expect it to give me all elements - except input - w

4条回答
  •  粉色の甜心
    2021-01-05 12:18

    //*[not(self::input)][@*[substring(., string-length(.) -8) = 'Copyright']]
    

    May be small correction with string-length(.)

    Now, it may work.

提交回复
热议问题