xmlSetProp(root_xml_node, msg_type_target, "ping");
set_xml_property_copy(root_xml_node, msg_type_target, "ping");
createPingRequest(const char *reference, const char *to){    xmlNodePtr root_xml_node = NULL;    int sub_type_len = strlen(to) + strlen(XML_MSG_TAG_REQUEST) + 2; // 2 = "_" + '\0'    char *sub_type_target = (char*)ha_malloc(sizeof(char)*(sub_type_len));    sprintf(sub_type_target, "%s_%s", to, XML_MSG_TAG_REQUEST);    root_xml_node   = xmlNewNode(NULL, sub_type_target);    xmlSetProp(root_xml_node, XML_MSG_ATTR_REFERENCE, reference);        int msg_type_len = strlen(to) + 10 + 1; // + "_operation" + '\0'    char *msg_type_target = (char*)ha_malloc(sizeof(char)*(msg_type_len));    sprintf(msg_type_target, "%s_operation", to);    xmlSetProp(root_xml_node, msg_type_target, "ping");//    ha_free(msg_type_target);    FNRET(root_xml_node);}