ret_value = parent->values[parent->nfields-1]; crm_validate_data(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;}