ruby script to format list of french city and convert it from XML to JSON