Change attribute in different file formats