Exact soliton solution and inelastic two-soliton collision in a spin chain driven by a time-dependent magnetic field.