From: Ryan Davis Date: 2009-09-10T01:21:07+09:00 Subject: Re: Help required in generating xml + sinatra On Sep 9, 2009, at 07:44 , Florian Gilcher wrote: > You use single quotes. Those are not interpolated. > > If you do "#{construct_xml(array_of_names)}", everything should work. Better, don't use quotes for no reason: construct_xml(names) > On Sep 9, 2009, at 9:40 AM, Ken Ghosh wrote: > >> get '/multiquery.xml' do >> content_type('text/xml') >> array_of_names = params[:name] >> '#{construct_xml(array_of_names)}' >> end "array_of_" is equally useless. plural implies a collection. >> ... >> >> iam sure that xml is formed properly.i mean to say the i have set >> the >> :target => $stdout >> >> like this >> Builder::XmlMarkup.new(:target =>$stdout ,:indent =>1) >> and the xml is constructed properly in console >> ent .Is there any thing that I am missing. Yes, there is something REALLY OBVIOUS that you're missing. A test. The SIMPLEST of tests would have made this entire question obvious.