Search code examples
xmlmergedifftidybeyondcompare3

Beyond Compare 3.0 and XML Tidy, but save Original Format


I am using Beyond Compare 3.0 and using the XML tidy and XML tidied with sorted attributes plugins. Its great and while I would like it to show me the "tidied" XML, Once I resolve me merge, I would like to save it back with the original formatting (not the tidied format). Is there anyway of doing this?

For example, if I have these two XML snippets -

File1 : <test attrib="1" batrib="2" catrib="3"\>
File2 : <test batrib="4" catrib="5" attrib="5"\>

I would like to visually see them tidied up and attributes sorted, so I can make my changes/resoluutions. For example, If I resolve to change the value of attrib to 5 and keep the rest, When I save the file, I want to see this ...

Final : <test attrib="5" batrib="2" catrib="3">

Not : <test 
        attrib="5" 
        batrib="2" 
        catrib="3">

Beyond compare seems to save the file in the second format (tidied) up.

Any Idea how I can go about fixing this?

Regards ...


Solution

  • The best way I can think of is to use Visual Studio's format document feature to re-un-tidy the file after you've merged.