If you got it from pastebin I would strongly suggest making sure it's ACTUALLY an XML file and not saved as a TXT file, because pastebin often doesn't save default to XML for me.
This. Windows defaults to not showing file extensions so it's easy to mistakenly name it and still have it be a txt or other file types.
If you aren't sure just right click and hit properties. Under the general tab, you'll see "type of file" and it should say XML there.