Check your autoformat settings for XML. Make sure the style is consistent.