If you espect light elements which in XRF in air are not detectable, you may use WDX in vacuumm, which yield also sensitivity down to 0,01wt% and can also measure elements like B, N, O, F, Na, Mg. - XRF in vacuum should also be able to measure light elements.