updating xml and repacking it