Is it possible to generate an .xlf file from a .csv file?

Hello all,

I have written some code to convert an .xlf to a .csv file for the purpose of creating a language comparison spreadsheet (we need to compare two en-fr translations side-by-side) for a language reviewer that doesn't have access to SDL Trados.

In an effort to save time (in writing the reverse code), I was wondering if it's possible for SDL Trados to import the completed .csv files and then export it as a valid .xlf.

The csv file contains all the necessary tags, as well as the tag attributes for the <trans-unit id>... is it possible to create a filter to "teach" SDL Trados how to reassemble our .xlf file from the .csv?

Thank you.