From: ara.t.howard@... Date: 2006-05-03T23:32:59+09:00 Subject: Re: Problem with SQLite and Ruby On Wed, 3 May 2006, Peter Hickman wrote: > The problem for me is that the code I am writing needs to take an array of > results and convert the results hash for each record into a chunk of XML for > any set of results it is passed in. Thus it does not know, or even need to > know, what the keys for the table are. It just wants to iterate over them > and create some output. It does not take much for me to only process the > string based keys but it looked to me like I was overlooking something > obvious. > > No big deal, just didn't work quite the way I was expecting. indeed. you can do fields = tuple.fields fields.each do |field| append_xml field, tuple[field] end and preserve order. or just the String keys and use random order. regards. -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama