find_xml_in_hamessage(const struct ha_msg* msg)
find_xml_in_hamessage(const HA_Message * msg)
find_xml_in_hamessage(const struct ha_msg* msg){	const char *xml;   	xmlDocPtr doc;	xmlNodePtr root;		if (msg == NULL) {		crm_info("**** ha_crm_msg_callback called on a NULL message");		return NULL;	}#if 0	crm_debug("[F_TYPE=%s]", ha_msg_value(msg, F_TYPE));	crm_debug("[F_ORIG=%s]", ha_msg_value(msg, F_ORIG));	crm_debug("[F_TO=%s]",   ha_msg_value(msg, F_TO));	crm_debug("[F_COMMENT=%s]", ha_msg_value(msg, F_COMMENT));	crm_debug("[F_XML=%s]",  ha_msg_value(msg, F_CRM_DATA));/*    crm_debug("[F_=%s]", ha_msg_value(ha_msg, F_)); */#endif		if (strcmp(T_CRM, ha_msg_value(msg, F_TYPE)) != 0) {		crm_info("Received a (%s) message by mistake.",		       ha_msg_value(msg, F_TYPE));		return NULL;	}	xml = ha_msg_value(msg, F_CRM_DATA);	if (xml == NULL) {		crm_info("No XML attached to this message.");		return NULL;	}	doc = xmlParseMemory(xml, strlen(xml));	if (doc == NULL) {		crm_info("XML Buffer was not valid.");		return NULL;	}	root = xmlDocGetRootElement(doc);	if (root == NULL) {		crm_info("Root node was NULL.");		return NULL;	}	return root;}