Convert CSV data to Changelog.xml file

Hi,
Iam working on DB2 database. I can create  liquibase changelog.xml containing changesets.
I would like to use CSV file to generate the liquibase changelog.xml containing changesets.

my requirement

1) Convert  CSV file data to Changelog.xml
The columns in CSV  should map to the column names of  Changeset in the Changelog.xml .
Each row in CSV will have values which are the values for the column names of each changeset.



2)  Convert Changelog.xml to CSV file data.
the column names of  Changeset in the Changelog.xml should map to the columns in CSV.
The values for the column names of each changeset  will have values for  each row in CSV.


How can I do this ?

Thanks