rebuild xml