We report our local X-ray absorption spectra (XAS) measurement mapping for a Co/Pt multilayer using scanning transmission microscopy with 25-nm spatial resolution and 0.1-eV spectral resolution. We have systematically analyzed the two-dimensional XAS intensity variation over the corresponding magnetic domain patterns, revealing a XAS profile across the magnetic domain wall as well as the simultaneous high-throughput measurement of local XAS spectra.