From: Anandh Kumar Date: 2010-01-22T15:38:08+09:00 Subject: Re: XML Manipulating Dear Mike Can this be done using Hpricot. I tried doing with Hpricot. But Hpricot doesnot support xpath. It support something called "search".With that too I could not get my desired result since it doesnot support "following-sibling" property. Any help would be appreciated. Thanks Anandh Mike Dalessio wrote: > Hi Anandh, > > I've cross-posted my reply to nokogiri-talk, which is where followup > questions are probably best sent. > > On Tue, Jan 12, 2010 at 6:44 AM, Anandh Kumar > wrote: > >> >> >> >> tar3 >> >> >> Any help would be greatly appreciated. >> >> >> > This is straightforward if you know some XPath (see > http://www.w3.org/TR/xpath) and Nokogiri. > > I've posted a solution at: > > http://gist.github.com/275209 > > The general idea is that we find the nodes we care about, and then build > a > new document with those contents. > > Cheers, > -mike -- Posted via http://www.ruby-forum.com/.