Thank you AntoPISA! I think I will need to add support to those .dat files at some point, instead of just MAME's own xml.
The thing about the dats though, is that there are important things missing from them that Lightspeed needs to filter things, like orientation, control type, number of buttons, save state etc. It would work, but the filters would not be working at their fullest.