Each element has its own specific electronic energy levels and they absorb X-rays (XAS) at energies characteristic of those levels. Near the absorption edge, the spectra may contain fine structure (XANES) that reveals the chemical environment of the absorbing atom. Farther from the edge, the spectra (EXAFS) reveals the spacings of neighboring atoms.