Insert attribute in different file formats