Your Ad Here

Tiny XML

Copyright (c) 2009 by Brian O. Bush

Small, fast, memory efficient, embeddable SAX-parser for XML in C.

What is it?

Yet another XML library? Didn't you already write one? Yes, I did, see picoxml

The origins of tinyxml come from my development on the Nintendo DS and basically inverted pico XML to be a SAX-like parser and some other improvements (and fixes).




Simply unpack the tarball and run the scons (SConstruct) in the untarred directory:

$ scons  
scons: Reading SConscript files ...  
scons: done reading SConscript files.  
scons: Building targets ...   
tarball_builder_fn(["tinyxml-20090813.tar.gz"], ["tinyxml.c", "tinyxml_test.c", "tinyxml_ex.c", "tinyxml.h", "SConstruct", "", "sample.xml"])   
gcc -o tinyxml.o -c -Wall -Werror -pedantic -g -O2 -std=c99 tinyxml.c  
gcc -o tinyxml_test.o -c -Wall -Werror -pedantic -g -O2 -std=c99 tinyxml_test.c   
gcc -o tinyxml_test tinyxml.o tinyxml_test.o  
scons: done building targets.

You should now have two test applications, tinyxml_test and tinyxml_ex. See source for those examples for how to employ the tinyxml API for your application.

$ ./tinyxml_test sample.xml 
[start tag] deck
[start tag] card
[attr name] id
[attr val] 1
[start tag] q
[text] one
[end tag] /q
[start tag] a
[text] δΈ€


Release 0.1 - Initial public release, 13-Aug-2009.


GNU Lesser General Public License (LGPL)


I would be interested in an applications using tinyxml, bug reports or patches.
Brian O. Bush,