How to process a bi-lingual XML file?

Hello community,

I have been given a bi-lingual XML file for revision. The basic structure is like this:

<string language="de">German text</string>

<string language="en">English text</string>

I would like to edit the file in Studio 2016 so that I can update my TM after the final revision. I know how to extract strings in one language (e.g. only the "en" attribute), but how can I "tell" Studio that German (de) is the source language whereas English (en) is the target?

I assume I will have to define a new file type and parsing rules, but I have not be been able to figure out exactly how to do it.

Any pointers will be appreciated!