Does anyone have enough experiance with the MAME code to tell me how it reads XML Files? I can understand a lot of the other core code and such. But how can I read in a custom XML file?
Hello,
The MAME devs are now using the
Expat XML parser library. It is a general purpose XML parser.
For custom XML files, you can build a fast parser with
Flex and
Bison.
I've got a sample application which replaces the xml2info MAME utility, and which runs much faster than the original. It is
here.
My new application, a control panel image generator, has three separate parsers, two of which are XML parsers which parse the controls.xml file and the MAME ctrlr files. You can find the source to that project
here.
Regards,
Buddabing