tags:

views:

256

answers:

2

I'm after a very tiny XML parser for an embedded project. It needs to compile down to 10-15k, doesn't need to validate, and needs to be simple and portable.

+2  A: 

You can always roll your own implementation. I did this a few years ago, and just now added some interface documentation to the code at mercurial.intuxication.org/hg/cstuff.

Please note that the parser has never been used in a production environment or even been tested more than rudimentarily; comments are non-existent as well, so have fun grokking the code if you need to modify it ;)

Christoph
Thanks Christoph. That's exactly what I did in the end - hand roll my own implementation. I actually implemented it before your post, but thanks anyway - I'll take a look at your implementation and compare with my own.
Joe
A: 

I was able to tweak the compilation flags of the following XML parser libraries for C, and cut down more than 50% of their size on my Ubuntu machine. Mini-XML is the only one close to what you requested:

There's a good discussion here:

http://stackoverflow.com/questions/1131701/c-xml-library-for-embedded-systems

karlphillip