It's in the FAQ for controls.dat. Documenting the controls used by games in mame.
ok, 505 game directly supported, 1044 indirectly supported.
chris, the xml file is broken, I am going to try and fix it soon. Just delete the offending chars that are causing the probs.