[Solved] expected ‘void (**)(void *, const char *)’ but argument is of type ‘void (*)(void *, const char *)

[ad_1] It is pretty wonky, it wants to return the default error handler. So you have to pass a pointer to a variable. Like this (untested): xmlGenericErrorFunc handler; initGenericErrorDefaultFunc(&handler); If I understand your intentions properly, this is not the function you actually want to use to suppress errors. Use xmlSetGenericErrorFunc() instead. You can use initGenericErrorDefaultFunc() … Read more

[Solved] C++ program error Libxml2 [duplicate]

[ad_1] As the error says: structure xmlNode has no member “d”. If you want to compare the content of the node, use the member “content”: xmlStrcmp(cur->content, (const xmlChar *)”d”)) 2 [ad_2] solved C++ program error Libxml2 [duplicate]