When I write .xml files in Eclipse, I often have to manually indent code. For example
open windows->preferences->xml files->editor enter some high number for line width, say 999 and then format the xml file with ctrl+shift+F.
You ll see the lines are aligned properly.