Is there a single good XML parser out there??

Started by
8 comments, last by kyoryu 14 years, 10 months ago
I've been looking far and wide for a C or C++ XML parser that actually supports character encoding other than char*, and I have yet to find one. I'm currently writing one myself that at least supports UTF-8 and can extract text as any basic_string type, but it would save much time to find an existing one. Does anybody know of any fully-featured XML parser for C or C++ (preferably C++)? Any help is appreciated.
Advertisement
What libraries did you look into already?

Too many projects; too much time

http://www.applied-mathematics.net/tools/xmlParser.html
(my favourite)

also, http://www.ambiera.com/irrxml/
libxml++ supports UTF-8:
http://libxmlplusplus.sourceforge.net/docs/manual/html/index.html

XmlParser does too:
http://www.applied-mathematics.net/tools/xmlParser.html

XmlLite seems to support it:
http://msdn.microsoft.com/en-us/magazine/cc163436.aspx

HTH :)

(If this weird forum had BB-code buttons, I'd given you proper formatted links..)

<edit>
Looks like xDan beat me to it!

Too many projects; too much time

Thanks for the links! rate++ for all of you. These are the sort of thing I'm looking for. I've previously tried TinyXML, RapidXML, and some others, all of which lack in some necessary features.
libxml++ is quite good.
Some people don't like that it depends on glibmm for unicode management though.

Quote:'m currently writing one myself that at least supports UTF-8 and can extract text as any basic_string type

basic_string is not suitable for Unicode.
Unicode is variable-width, and basic_string may only contain PODs.
There is also the QtXml Module.
MSXML uses BSTRs if that's any consolation...
"In order to understand recursion, you must first understand recursion."
My website dedicated to sorting algorithms
The last three companies that I have worked for have all used: http://xerces.apache.org/xerces-c/

TinyXml?

http://www.grinninglizard.com/tinyxml/

I know it's been used commercially.

Xerces is kind of a pig.

This topic is closed to new replies.

Advertisement