Resonant and nonresonant magnetic scattering (invited)