How imported file has to look like inside to work properly?
It should be XML and in the same format as the XML you get when you select:
There is also an XML Schema (v1.1) describing the XML structure here: