Main > Software Forum

NO MORE LISTINFO in 84!

Pages: << < (8/9) > >>

SirPoonga:


--- Quote from: Silver on July 12, 2004, 06:01:57 pm ---This is not me being particulary clever - its just a matter of using the SAXX xml parser instead of the standard MS DOM one. The SAX parser is implemented by MS in the same bundle - MSXML v3 and up I think.

--- End quote ---

Yep, it's just a matter of finding the right parser.  I've been wanting to parse xml in php for hte controls.dat project, but the built in xml stuff is slow and resource heavy.  I have been reading to try the PEAR or SOAP parsers.

PacManFan:

For all you FE authors out there looking to add easy XML support, I would recommend CMarkup, it's a single C++ file that's a complete XML parser. It doesn't rely on a single MS DOM object at all. The entire parser is self contained , and extremely fast and efficient. You can get it from here http://www.firstobject.com/dn_markup.htm

I know most of you are groaning at this point because it's C++ and not VB. I think I'm the only C++ FE developer here. What you can do to use this file is this:

Compile the C++ CMarkup.cpp file as a static library using MSVC, like CMarkup.lib, and then create some VB import functions to use it. I can probably do all this if you'd like and create the lib and a .bas file with the imports.

CMarkup is very simple to use, check it out.

-PMF

SirPoonga:

I also posted this comment about listxml on mame.net
http://www.mame.net/cgi-bin/wwwthreads/showpost.pl?Board=mamegeneral&Number=151022&page=0&view=expanded&mode=threaded&sb=7#Post151022

Whitespace does make a big difference to some parsers.

Silver:

Aceldamor :

Well here ya go... pretty much the first program I've let loose to the general public. Please give it a try and let me know if it works for you etc....

Just point it at your roms dir, an empty destination dir, the listinfo.xml (sorry does not autogenerate from mame yet.....) and the controlsDAT xml (or just one of them) and it should do the rest. The defaults are for the PJRC LCD I own, but LCD instructions/headers can be entered manually. Or send me codes that work for you and I will add it to the drop down selection.

Please note this is BETA software and hence will probably wreck your pc/steal your passwords/emails/creditcardinfo/adresss/soul.

Found at:

http://www.silverfoxy.plus.com/

PS: It uses the SAX parser in VB and I've stuck in a counter so you can see how fast it parses the xml's as it goes. To test just set up the xml locations and point it at a dud rom dir and it will parse the xmls.  Its not max speed as its also DoEventing/refreshing the counter everyloop.

EDIT: New Web Address

Howard_Casto:

On a somewhat related note... the xml conversion inside mame seems to have corrupted some outputs.  Check out alien 3:  the gun to see what I mean.  

Also I've noticed that the conversion is getting slightly faster as the u builds are released.  Perhaps it was buggy?

Pages: << < (8/9) > >>

Go to full version