xmlNodePtr res = NULL;
int del_res = -1;
delResource(xmlNodePtr cib, const char *id){    xmlNodePtr res = NULL;	FNIN();		res = findResource(cib, id);    if (res != NULL) {		unlink_xml_node(res);		xmlFreeNodeList(res);    }        FNRET(0);}