Fixed error that would lead to improper xml for files with version attribute