From: Robert Dober Date: 2010-08-25T00:20:57+09:00 Subject: Re: Convert array of object to xml On Tue, Aug 24, 2010 at 6:33 AM, Shyam Krishna Khadka wrote: Hmm I have to do some guessing here the base idea is that you need hashes as elements, thus parting from the hypothetical problem [ :a, 42, "a"].to_xml RuntimeError: Not all elements respond to to_xml you can do something like this [ :a, 42, "xxx"].map{|x| { :name => x } }.to_xml => "\n\n \n a\n \n \n 42\n \n \n xxx\n \n\n" If you still have problems it would be helpful to post some code, one would need to look into the ary HTH R. -- The best way to predict the future is to invent it. -- Alan Kay