Add XML declaration in metadata files