Sign in to follow this  
Daggerbot

Is there a single good XML parser out there??

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this