Added a utility to update lattices in xml inputs.