A technique for measuring x-ray fluorescence that involves exciting elements in a sample then diffracting the emitted radiation by using a device, such as a crystal or monochromator, in order to measure the intensity of x-rays with a specific wavelength.