"task",
XML_LRM_ATTR_TASK,
action2xml(action_t *action){	xmlNodePtr action_xml = NULL;		if(action == NULL) {		return NULL;	}		switch(action->task) {		case stonith_op:			action_xml = create_xml_node(NULL, "pseduo_event");			break;		case shutdown_crm:			action_xml = create_xml_node(NULL, "crm_event");			break;		default:			action_xml = create_xml_node(NULL, "rsc_op");			add_node_copy(action_xml, action->rsc->xml);						break;	}	set_xml_property_copy(action_xml,			      "on_node",			      safe_val4(NULL, action, node, details, id));	set_xml_property_copy(action_xml,			      "id",			      crm_itoa(action->id));	set_xml_property_copy(action_xml,			      "runnable",			      action->runnable?"true":"false");	set_xml_property_copy(action_xml,			      "optional",			      action->optional?"true":"false");	set_xml_property_copy(action_xml,			      "task",			      task2text(action->task));	set_xml_property_copy(action_xml,			      "discard",			      action->discard?"true":"false");	set_xml_property_copy(action_xml,			      "allow_fail",			      action->failure_is_fatal?"false":"true");	return action_xml;}