Soliton dynamics in planar ferromagnets and anti-ferromagnets