cleanup XML