From: "Jesús Gabriel y Galán" Date: 2011-11-24T18:41:00+09:00 Subject: Re: NOKIGIRI XPATH On Thu, Nov 24, 2011 at 9:43 AM, Ruby Mania wrote: > I have a long XML like below .. I wish to select DATA ("cdef" in this > case) when key="English" > > What can be the easiest way. XML below is a part of 100 page XML > > > > >   Spanish >   >    description >       >            ABCDEF >       >    server` >    systems >    title >     Directir >   >   English >     >      description >       >          CDEF >       >      server >      producer >      title >      Update 66 >     > > > -- > Posted via http://www.ruby-forum.com/. > > Try this: doc.xpath("//key[. = 'English']/following-sibling::topic/data") => [#]>] Jesus.