What is the difference between .ytm, .ymap and .XML?

For FiveM, what’s the difference between all the files referenced in the title and which is better and why?

“.ytm” doesn’t exist and I believe you meant “.ymt”, which is a “native” manifest file that’s used for quite a plethora of things within the game itself. “.ymap” is, well, a “map”, however it’s exterior-only. The base GTAV game’s map is partially comprised out of ymap files to place props in the world. “.xml” is not really used anywhere in the base game, however any “.meta” file is technically an XML.
And one more thing - all of those are NOT interchangeable - they all do different things and you cant force to do something the other one does. That simply will not work.

Thank you!