Modify attribute in different file formats