Sample code to save SDLXLIFF to target document

Hi everyone. Could someone please share with me on any sample code to save a SDLXLIFF into a target document?

I could do it in Trados Studio 2015, by opening a SDLXLIFF file (double-clicking on the file) , then File->Save Target As.

How may I do this in C#?

Thanks a million!