node = find_xml_node(parent, node_name);
node = find_xml_node(parent, node_name, FALSE);
set_xml_attr(	xmlNodePtr parent,	const char *node_name, const char *attr_name, const char *attr_value,	gboolean create){	xmlNodePtr node = parent;	xmlAttrPtr result = NULL;		if(node_name != NULL) {		crm_insane("Setting %s=%s at [%s [%s]]",			  attr_name, attr_value,			  xmlGetNodePath(parent), node_name);		node = find_xml_node(parent, node_name);		if(node == NULL && create) {			node = create_xml_node(parent, node_name);			if(parent == NULL) {				parent = node;			}		}	}	if(node == NULL) {		crm_warn("Can not set attribute on NULL node");		return NULL;	} 	result = set_xml_property_copy(node, attr_name, attr_value);	if(result == NULL) {		crm_warn("Could not set %s=%s at %s (found in %s)",			 attr_name, attr_value,			 xmlGetNodePath(node), xmlGetNodePath(parent));	}	return parent;}