A quantitative analysis method that uses X-rays to determine the crystal structure and composition of a sample.