Generating xml file from UNIX

i have a unix script which generates the csv file. the data in csv file is dynamic. how can i convert/move the data from csv file to xml. please suggest

What do you mean by dynamic? Do you men that the data in the file changes every time the script is run? Do you mean that the columns keep changing position for some reason?

Can you show examples of the data in both the CSV format you get and the XML format you wish to obtain?

Andrew