I'm sure he has given me the answer and I'm sure I'm making some stupid obvious mistake, but I have no idea what it is.
All I can say is that when I add the suggested lines of code and alter the xml-file I get no errors publishing and everything seems to work, except nothing happens in the text import department...
I've attached one of my attempts to get it to work with the added lines if anyone wants to take a look. (split in two)