Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Using MAME to read XML File  (Read 1431 times)

0 Members and 1 Guest are viewing this topic.

DaemonCollector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 443
  • Last login:December 26, 2009, 07:02:16 pm
  • All your base are belong to us.
Using MAME to read XML File
« on: September 14, 2004, 08:30:00 am »
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?

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re:Using MAME to read XML File
« Reply #1 on: September 14, 2004, 11:57:22 am »
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
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

DaemonCollector

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 443
  • Last login:December 26, 2009, 07:02:16 pm
  • All your base are belong to us.
Re:Using MAME to read XML File
« Reply #2 on: September 14, 2004, 05:49:04 pm »
Thank you much, *cracks knuckles and dives back into source*