From: Ruby Mania Date: 2011-11-24T20:30:55+09:00 Subject: Re: NOKIGIRI XPATH Thanks a lot for help. But it matched CDEF and all nodes after that even if key != english thanks again >> > > Try this: > > doc.xpath("//key[. = 'English']/following-sibling::topic/data") > > => [# children=[#]>] > > > Jesus. -- Posted via http://www.ruby-forum.com/.