In XANES, a sample is exposed to a beam of X-rays, and the absorption of these X-rays is measured as a function of their energy. As the X-ray energy approaches the absorption edge of an element in the sample, there are sharp increases in absorption, known as absorption edges. The fine structure near these edges, known as the "near edge" structure, provides insights into the local electronic environment and bonding characteristics.