Xpath: Igonore nodes with certain innertext -


how can ignore nodes have innertext don't know innertext of other nodes:

<row>    <column>test</columm> </row> <row>    <column>???</columm> </row> 

this tried didn't work

  • row/column[not(.='test')]
  • row/column[.!='test']
  • row/column[not(text()='test')]
  • row/column[text()!='test']
  • row[column[text()!='test']]/column

this rows first <column> not test.

//row[column[1][. != 'test']] 

see http://www.xpathtester.com/obj/1ddc1930-ad7f-424c-9800-85df95fe6af3 (hit "test!") run it


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -