const char * id = xmlGetProp(xml_node, XML_ATTR_ID); if (id == NULL || strlen(id) < 1) FNRET(-1);
int add_res = 0; const char * id = NULL; const char * type = NULL;
addHaNode(xmlNodePtr cib, cibHaNode *xml_node){    const char * id = xmlGetProp(xml_node, XML_ATTR_ID);    if (id == NULL || strlen(id) < 1) FNRET(-1);    if (findHaNode(cib, ID(xml_node)) != NULL) FNRET(-2);    const char * type = xmlGetProp(xml_node, XML_CIB_ATTR_NODETYPE);    if (type == NULL || strlen(type) < 1) {		FNRET(-3);    }        FNRET(add_node_copy(cib, XML_CIB_TAG_NODES, xml_node));}