In my controller I have:
xml_doc.xpath('//locale').map do |i|
Thing.create!(:name => i.xpath('englishName').inner_text, :lang => i.xpath('representation').inner_text)
end
The xml doc is: http://www.facebook.com/translations/FacebookLocales.xml
The problem is that the lang column is set to:
af_ZAar_ARaz_AZbe_BYbg_BGbn_INbs_BAca_EScs_CZcy_G...
for each element created.
The problem:

Ultimately the issue is that the
representationisn’t at the same level asenglishName:Outputs (truncated):