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: MAMEs listinfo xml file  (Read 1791 times)

0 Members and 1 Guest are viewing this topic.

Jimbo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1014
  • Last login:January 04, 2025, 12:18:10 pm
  • I have no idea what I'm doing.
    • Wood Finishes Direct
MAMEs listinfo xml file
« on: June 16, 2007, 06:25:48 am »
Hi,

I'm writing some code to read in mame's full xml game list (-listinfo).

Does anyone here know if the DTD for it has changed much in the past (recently) or is it a safe bet to assume it will stay the same for some time to come?

Thanks

Jimbo

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: MAMEs listinfo xml file
« Reply #1 on: June 16, 2007, 07:27:38 pm »
I don't know what DTD is, but you can count on them adding fields to the XML info every few revisions.

The listinfo option was removed from MAME some time ago, the XML file is generated via the -listxml option.

You might look at how MAME itself parses out the listxml info. The last I looked at it, MAME used the free expat library for parsing.

The ListGen utility I wrote uses a flex/bison based parser and is much faster that the MAME library. It is, however, more subject to breaking when the XML changes.

HTH,
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!

Jimbo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1014
  • Last login:January 04, 2025, 12:18:10 pm
  • I have no idea what I'm doing.
    • Wood Finishes Direct
Re: MAMEs listinfo xml file
« Reply #2 on: June 17, 2007, 08:14:14 am »
Hi,

Yeah thanks for your suggestion. I did actually mean the -listxml option, was just a typo. :)   DTD is "Document Type Definition" - its whats at the top of MAME's -listxml output, and it describes/helps validate the document.

I'll check out the MAME parser - didn't even think of looking at that! I'll have a look a your ListGen util too.

Cheers

Jimbo