From: Anandh Kumar Date: 2010-01-20T18:06:25+09:00 Subject: Re: XML Manipulating Thanks mike. The solution solved my problem to a greater extent but with one issue. In the resulting solution which is as follows Business Strategy bus1 bus2 bus3 Company Description tar1 tar2 tar3 Can you suggest me how can i avoid "". If i give some thing like this puts new_doc.to_xml(:dasherize => false, :skip_instruct=>true) Ruby compiler threw argument error. 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/.