Update XML writing.