fixes extra xml in input filename