XML lib for Lite-C

Posted By: PadMalcom

XML lib for Lite-C - 10/04/10 09:50

Hi, is there any XML-Header for Lite-C so far? Can't find one using the the search engine.
Posted By: TechMuc

Re: XML lib for Lite-C - 10/04/10 10:47

I can code it for you if you need one (of course for a small payment wink )

Answer to the question: As far as i know, no library is available..
Posted By: WretchedSid

Re: XML lib for Lite-C - 10/04/10 10:49

Grab an existing C library and either port it or make an DLL out of it. Where is the problem?
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/04/10 11:10

I tried MiniXML and included the header as well as the lib. But it seems to be incompatible with Lite-C.
Posted By: WretchedSid

Re: XML lib for Lite-C - 10/04/10 11:33

File bug reports and make workarounds for the meantime. Otherwise it will never work wink
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/04/10 11:49

Haha not as long as there are other libraries which may work tongue
Posted By: WretchedSid

Re: XML lib for Lite-C - 10/04/10 12:57

Than file at least some bug reports. It helps all of us when engine and compile improves and it takes only 10 minutes of your lifetime.
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/04/10 13:33

As you might see in my blog I'm contributing a lot wink But as long as I did not make any significant progress there is nothing to report.
Posted By: WretchedSid

Re: XML lib for Lite-C - 10/04/10 14:32

I really don't care what you contribute, but if you have problems compiling a valid C library, file a bug report so that the compiler can be improved. Thats it.
Posted By: Saturnus

Re: XML lib for Lite-C - 10/04/10 15:18

If I'm not mistaken, Firoball has an XML parser in his Toolbox library (or how it is called). I don't know anything about it, though.

Probably you won't need most XML features, so writing a parser yourself could be an option, too (if you feel like it).
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/04/10 15:19

Hey Sid I just found the right thing for you wink http://tiny.cc/dqp3fan1b2
Posted By: WretchedSid

Re: XML lib for Lite-C - 10/04/10 15:28

Well, than don't file a bug report but please don't complain about bugs anymore because you are apparently not interested in a fix.
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/04/10 15:45

Apparently, I am not. Apparently, I am interested in a solution. Apparently, this is why I have chosen a title named "XML lib for Lite-C" and not "Fix for XML lib 42 for Lite-C" wink

And as I said, whenever I have some knowledge to contribute I will do. If you had a bad day just leave your bad mood at home... really.
Posted By: FBL

Re: XML lib for Lite-C - 10/04/10 19:22

I indeed have some clumsy XML stuff running in Lite-C. Unfortunately it is not 100% comaptible to every XML file as I forgot to add some stuff. Will have to change that when I have some more free time again I think.
Also there is no good error handling, so don't try to break it with invalid XML files - you'll be successful in breaking it laugh

xmlsample.c should be in subfolder 'samples'
list.c/h in subfolder 'list'
xmlreader.c/h in subfolder 'xmlreader'

You may need to adjust include pathes when moving files around.

xmlreader.c: http://pastebin.com/MnHXsx74
xmlreader.h: http://pastebin.com/gUw8VpUv
list.c: http://pastebin.com/VvqfH5Kx
list.h: http://pastebin.com/3zCpJYfv

A hastily written sampel script:
xml_sample.c: http://pastebin.com/xmeZSH3h
test.xml (used in xml_sample.c): http://pastebin.com/3XRis38q


Provided as is. Hate it or love it.
Posted By: PadMalcom

Re: XML lib for Lite-C - 10/05/10 07:13

Hi Firoball, I only need basic functions, so your script's might be sufficient. Thanks a lot!! If I make any progress on the clumsy XML stuff I'll send you the improvements laugh

(Btw: The typo in your location is volitional? wink )
Posted By: FBL

Re: XML lib for Lite-C - 10/05/10 16:32

it's intended.

Munichen
© 2024 lite-C Forums