I have this little cross platform UI framework I'm working on.
It uses XML as layout definitions.
Currently, I'm using TinyXML since that is what we have always used, it's simple and fast, and I didn't need any advanced XML features.
Getting to it's limits now though, so I'm looking for nice alternatives, hoping the community can give some tips!
Must have features:
- C or C++ API (prefer fairly modern C++)
- Good error handling, so I can output nice and readable error messages when people mess up their XML
- License to use for commercial closed source projects
Preferable:
- Cross platform/Easy to port
- Fast
- DOM
Wild wish:
- parsing/compiling binary XML (for speed and space savings)
If its easy to port and fast, I might be able to use it for parsing the XML on device (iOS, Android, WhateverOS), if not, it could be ok if I just run it in a tool on the desktop dev computer.
A quick search have turned up two alternatives:
Xerces-C++ (Seems dead though? last update on homepage is 2010...)
libxml2 (from Gnome)
Anyone who has any tips for other alternatives, or something to say about either of the two above?