From: Ammar Ali Date: 2010-08-29T12:10:51+09:00 Subject: Re: select tr>3 with nokogiri > xpath('//table/tr[*[not(@class="tickerSm")]]') > maybe the reason is : some class of td is "ticker",another is > "tickerSm", > if i don't want to  select it with xpath,how to express it with xpath?? Hi Pen, I don't know if "not" is valid like that, I have to double check. But you can use "!=" with attributes. doc.xpath('//table/tr/*[@class!="tickerSm"]') I hope it helps, Ammar