table_data = []
xml = File.read('file1.xml')
doc, posts = REXML::Document.new(xml), []
doc.elements.each('resultset/row') do |table_row|
table_data << {:table_name => table_row.elements[1].text,
:record_count => table_row.elements[2].text,
:size_in_mb => table_row.elements[3].text
}
end