views:

238

answers:

1

Hi, 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 ...

A: 

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.

Foozinator
I have posted this to the beyondcompare forums http://www.scootersoftware.com/vbulletin/showthread.php?t=4903 they suggest a different answer, that I haven't had time to test out yet.Your suggestion is definitely much easier and simpler though.
Chaitanya