patch input XML