Are you using Source tab of JBoss Tools XML Editor? If so could you open an issue in JBoss Tools JIRA. It should not format XML if you use Source tab but I know in some cases it does.
If it's critical for you, then you can use XML Editor (it's from Eclipse/WTP) instead of JBoss Tools XML Editor until the issue with auto-formatting is fixed.