a simple xml parser written in C