I would like to write the contents of a variable, that I filled with my data using a specialised xml-syntax (TEI), into an xml-file. Little side note: I got a lot of weird unicode signs. So it has to come out as UTF-8.
For that you need plugins. There is are many plugins that you can choose from, but I like Base Elements plugin BaseElements Plugin | Goya Pty Ltd
Retrieving data ...