See the thread:
http://topas.dur.ac.uk/unb/forum.php?req=thread&id=282 for some related discussion.
You can directly fit energy dispersive data - usually in counts vs E. There are some links in the jedit menus on how to do this or see the publications by Rowles/Scarlett and others.