if(res != NULL) xmlUnlinkNode(res);
if(res != NULL) { xmlUnlinkNode(res);  }
delResource(xmlNodePtr cib, const char *id){    xmlNodePtr res = findResource(cib, id);    if(res != NULL) xmlUnlinkNode(res);    //need to call?? xmlFreeNodeList(res);    FNRET(0);}