Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1038258 Posts in 41956 Topics- by 33580 Members - Latest Member: Ziz

September 02, 2014, 08:40:34 AM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)Small, pure c/c++ XML parser?
Pages: [1]
Print
Author Topic: Small, pure c/c++ XML parser?  (Read 600 times)
DelishusCake
Level 0
***


funky


View Profile
« on: February 15, 2013, 09:25:12 AM »

Does anyone know of a good, dependency-less XML parser that I can drop into a c++ project without too much hassle?
Logged
impulse9
Level 5
*****



View Profile WWW
« Reply #1 on: February 15, 2013, 09:27:15 AM »

RapidXml
TinyXML
Logged

Aloshi
Level 2
**



View Profile
« Reply #2 on: February 15, 2013, 09:45:47 AM »

My favorite is PugiXML. One .cpp file, just compile it with your project.
Logged
BleakProspects
Level 4
****



View Profile WWW Email
« Reply #3 on: February 15, 2013, 10:00:15 AM »

I use TinyXML highly recommend.
Logged

rivon
Level 10
*****



View Profile
« Reply #4 on: February 15, 2013, 10:29:56 AM »

My favorite is PugiXML. One .cpp file, just compile it with your project.
I second pugixml. Very simple to use and very fast too.
Logged
Gimym JIMBERT
Level 10
*****


NOTGAMER ludophile


View Profile Email
« Reply #5 on: February 15, 2013, 10:30:25 AM »

no c# xml parser?
Logged


ILLOGICAL, random guy on internet, do not trust (lelebĉcülo dum borobürükiss)
Columbo
Level 0
***


View Profile
« Reply #6 on: February 15, 2013, 10:40:49 AM »

I've used RapidXML and TinyXML. RapidXML is really, really fast, and behaves well in terms of minimal numbers of memory allocations. I seem to remember it crashing and being a little tricky to debug when it's fed malformed XML though, but that might not bother you too much depending on your usage case.

My experience with TinyXML is that it's easy to use but made a horrible number of tiny allocations which caused serious performance problems in our title (although this was equally caused by the fact our memory manager wasn't great at dealing with large volumes of allocations).
Logged

DelishusCake
Level 0
***


funky


View Profile
« Reply #7 on: February 15, 2013, 03:49:39 PM »

Thanks, guys Smiley! I'll check these out and see which one I like best.
Logged
koiwai
Level 0
***



View Profile
« Reply #8 on: February 15, 2013, 04:40:23 PM »

I used bxmlnode, it's extremely tiny, 450 lines of code in a single file. It was enough for my purposes, but for production you should probably choose something bigger and better, I guess. Btw, in case of of syntactic errors, it crashes.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic