while(parent != NULL) { xml_child_iter( parent, a_child, node_name, if(id == NULL || safe_str_eq(id,crm_element_value(a_child,XML_ATTR_ID))){ crm_debug("returning node (%s).", xmlGetNodePath(a_child)); return a_child; } ); if(siblings) { #ifdef USE_LIBXML parent = parent->next; #else abort(); #endif } else { break; 
xml_child_iter( parent, a_child, node_name, if(id == NULL || safe_str_eq(id,crm_element_value(a_child,XML_ATTR_ID))){ crm_debug("returning node (%s).", xmlGetNodePath(a_child)); return a_child; 
find_entity(crm_data_t *parent,	    const char *node_name,	    const char *id,	    gboolean siblings){	while(parent != NULL) {		xml_child_iter(			parent, a_child, node_name,			if(id == NULL 			   || safe_str_eq(id,crm_element_value(a_child,XML_ATTR_ID))){				crm_debug("returning node (%s).", 					  xmlGetNodePath(a_child));				return a_child;			}			);		if(siblings) {#ifdef USE_LIBXML			parent = parent->next;#else			abort();#endif		} else {			break;		}	}	crm_warn("node <%s id=%s> not found in %s.",		 node_name, id, xmlGetNodePath(parent));	return NULL;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/5882b0444d6c34515e23218dce54573874ff1be4/xml.c/buggy/crm/common/xml.c