In the meanwhile, I've had time to write a short test program in C, and the same problem arises -- it seems therefore to be a problem with the libxml2 itself and not with the Perl binding. I've just posted on their mailing list, awaiting answers.
P