Lacanian-
There are several ways to parse a romlist but this is what I do and it works very well for me. The first thing that I do is get the latest hyperspin.xml, catver.ini, and nplayers.ini files etc... Once, I have these files, I place them in my AM root folder to simply importing them into my romlist.
I then add the catver.ini and players.ini to my mame emulator config as import_extras. You can add these extra .ini files by editing the mame emulator config directly or through the AM GUI under emulators. Then the last step is importing the mame.xml romlist. At the command line, CD to the attract DIR and then type attract -i mame.xml mame. This will build your new mame romlist with the extra info from the catver.ini and nplayers,ini files.
There also other tools like romlister, but for me, hyperspin already has a clean DB to work with.