There is a way to turn off Eclipse formatting(of Java code) selectively (see here).
Is there a equivalent for formatting of XML files?