On Aug 21, 8:13 am, Marcin Tyman <m.ty... / interia.pl> wrote:
> David,
> Your solution doesn't work correctly. I've resolved this like that
>
> temp = String.new("#{el.elements["id"].get_text}")
> arr << temp.to_i

How about: arr << "#{el.elements["id"].get_text}".to_i ?