From: "Iñaki Baz Castillo" Date: 2010-01-12T21:01:56+09:00 Subject: Re: XML Manipulating El Martes, 12 de Enero de 2010, Anandh Kumar escribió: > Hi everybody > > Can anybody there help me in solving the following issue. > > Consider the XML > > > Business Strategy > bus1 > > > Company Description > tar1 > > > Business Strategy > bus2 > > > Company Description > tar2 > > > Business Strategy > bus3 > > > Company Description > tar3 > > > Can this xml be parsed and manipulated in ruby as > > > Business Strategy > bus1 > bus2 > bus3 > > > Company Description > tar1 > tar2 > tar3 > > > Any help would be greatly appreciated. Of course it can be manipulated to get your desired output. You must use a XML parser (I recommend Nokogiri), inspect the XML by extracting/moving the nodes you are interested in and generating the new XML. -- Iñaki Baz Castillo