user2211703
user2211703

Reputation: 589

Xpath: Igonore nodes with certain innertext

how can you ignore nodes which have a certain innertext but you don't know the innertext of the other nodes:

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

this is what I tried but didn't work

Upvotes: 0

Views: 47

Answers (1)

Phil
Phil

Reputation: 165062

This will get you the rows where the first <column> is not test.

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

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

Upvotes: 1

Related Questions