The study of the atomic spectra that are generated when an inner electron is ejected from an atom; the hole created in this way is filled by an outer electron of the atom, and an X-ray photon is emitted as a result. X-ray spectroscopy is a useful technique for examining materials because the X-rays created in this way are specific to each element.