fixing xmlns and also attachtoroot shouldn't apply to heads which are already set to something other than root