I need to manage XML documents in Subversion but don't want to manage the formatting which may turn out differently depending on who is editing the file.
I see two solutions: Either format the file each time with a known formatting before checking in. Or give svn a diff program that actively dismisses formatting from the diff algorithm. Ultimately the diff should of course support three-way merge actively ignoring the XML formatting.
What do you recommend?
(The same reasoning usually applies to code source files, but the problem is more difficult.)