return find_entity_nested(parent, node_name, NULL, NULL, id, siblings);
while(parent != NULL) { xml_child_iter( parent, a_child, node_name, if(id == NULL || safe_str_eq(id, xmlGetProp(a_child, XML_ATTR_ID))) { crm_debug("returning node (%s).", xmlGetNodePath(a_child)); return a_child; } ); if(siblings) { parent = parent->next; } else { break; } } crm_warn("node <%s id=%s> not found in %s.", node_name, id, xmlGetNodePath(parent)); return NULL;
find_entity(xmlNodePtr parent,	    const char *node_name,	    const char *id,	    gboolean siblings){	return find_entity_nested(parent,				  node_name,				  NULL,				  NULL,				  id,				  siblings);}