Set attribute in different file formats