refactored and simplified csv to xml script