Set back xml element after putting it in cache