K edge XANES spectra of CuGaSe 2 , ZnGeAs 2 and CuFeS 2 are studied both experimentally and theoretically. While spectra of CuGaSe 2 and ZnGeAs 2 are remarkably similar, spectra of CuFeS 2 differ significantly, especially in the preedge region. Full-potential band structure calculations without any core hole give essentially the same results as real-space multiple-scattering calculations for a muffin-tin potential with a core hole included; the notable exception is the Cu edge in CuGaSe 2 , where non-muffin-tin effects possibly occur. The distinct prepeak visible at all three spectra of CuFeS 2 arises from transitions to delocalized multiple-scattering resonances which are confined almost exclusively to the Fe sites.