create fix_libxml2 function