Sorry... after looking at the mailing list archive, I realized where the problem is... I changed CHAR by xmlChar and it seems to be working now. I guess this is because I have libxml2 installed instead of libxml Thanks, Jung.