Hi,
I think the MAME DTD (Available with mame -listxml) is slightly different as the root tag is <mame> and not <datafile>, and each have a couple of different tags. It looks as if the datafile one was derived from an old version of the MAME one.
Would it make sense for a TOSEC-specific XML format (or an extension of the CMP one) to put the various information and flags into specific XML tags / attributes ? It would be good to store the metadata about each entry in a structured format, rather than encoding it within the filename I guess... Especially with non-ascii game names or names that contain characters that cannot be used in file names, or even titles using characters used for metadata like parenthesis and square brackets.
I'm willing to help, are the source of these tools available somewhere ? I'm happy to look at implementing XML support assuming that's in a language I'm familiar with. Also, some features might be replaceable with built-in XML features such as syntax validation, etc ?
Cheers,
Nico