Fix external file not existed, by firstly create an empty xml file