Create axml.c

Old version of the code (June 2012).