.txt documents are basic, unstructured knowledge data files and are generally more simple and smaller sized, whilst .xml files are stored in markup language and may contain photographs and various details that need not just the info itself, and also Recommendations on how to Screen the data Supplemental attributes like https://www.youtube.com/watch?v=niKMB5IWi_Y&t=4s&ab_channel=ShahabKhan