Would it be possible to have the Insert File function either:
a) strip off the XML instruction and DOCTYPE from the file being inserted.
b) request whether the strip should be performed.
Alternately, it could be an ON/OFF setting in Preferences.
Are you missing a feature? Request it's implementation here.