ha_msg_addstruct(parent, name, ret_value); 
parent_name = crm_element_name(parent); crm_insane("Attaching %s to parent %s", local_name, parent_name); CRM_ASSERT(HA_OK == ha_msg_addstruct( parent, name, ret_value)); crm_msg_del(ret_value);  
create_xml_node(crm_data_t *parent, const char *name){	const char *local_name = NULL;	const char *parent_name = NULL;	crm_data_t *ret_value = NULL;		if (name == NULL || strlen(name) < 1) {		ret_value = NULL;	} else {#ifdef USE_LIBXML		local_name = crm_strdup(name);		if(parent == NULL) 			ret_value = xmlNewNode(NULL, local_name);		else {			parent_name = parent->name;			ret_value =				xmlNewChild(parent, NULL, local_name, NULL);		}#else		ret_value = ha_msg_new(1);		crm_validate_data(ret_value);		if(parent) {			ha_msg_addstruct(parent, name, ret_value);			crm_update_parents(parent);			crm_validate_data(parent);		}#endif	}	crm_insane("Created node [%s [%s]]",		  crm_str(parent_name), crm_str(local_name));/*	set_node_tstamp(ret_value); */	return ret_value;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/5882b0444d6c34515e23218dce54573874ff1be4/xml.c/buggy/crm/common/xml.c