This paper describes the principles, methods, instrumentation and results of EDXKD and a computer method of profile fitting to obtain corrected intensities and peak energies from isolated and overlapping reflections. The profile, P, of a diffraction peak is a convolution of the incident X-ray spectrum, X, the geometrical aberrations, T, the contribution from the specimen, S, and the detector resolution function, D.