.txt files are plain, unstructured data information and tend to be more simple and smaller, while .xml documents are stored in markup language and may contain pictures and other aspects that have to have not just the information by itself, but also instructions on how to Display screen the info https://www.youtube.com/watch?v=niKMB5IWi_Y&t=4s&ab_channel=ShahabKhan