Small XML parser in C