About the xml file.
For myself, I never recall having a problem.
I don't trust it because others have.
I can only assume what happens is a user makes changes from a non-matching version, saves then uses that on a different version again.
Also, possibly xml file is edited by itself, not through CSM.
On wonky xmls that Jcee and I have fixed for people, here and on Open-Shell Github,
there are text changes that don't match up and need to be deleted/replaced with known good text.
It's like the information gets rewritten a different way on the wonky ones.
That's the ass in me just from xml comparison observations, not any technical knowledge about xml.
Hope you figure out how to get everything working.
Bye