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

前端 未结 4 1899
时光说笑
时光说笑 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:24

    Most likely explanation is that you are using an XPath 1.0 processors. The ends-with() function requires XPath 2.0 support.

提交回复
热议问题