Tunable photons from a synchrotron radiation beamline can be used to interrogate the likelyhood of absorption in a compounds as a function of photon energy. The spectrum thus obtained is reflecting the chemical composition and the bonding environment of the compound. Quantitative compositional analysis of a materials can be performed with a few per cent accuracy if spectra of relevant model compounds are utilized.