xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, type); xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1);
set_xml_property_copy(new_con, XML_CIB_ATTR_CONTYPE, type); set_xml_property_copy(new_con, XML_CIB_ATTR_RESID1, res_id_1);
createVariableConstraint(const char *id, const char *type, const char *res_id_1,			 const char *var_name, const char *var_value){    cibConstraint *new_con = newConstraint(id);    xmlSetProp(new_con, XML_CIB_ATTR_CONTYPE, type);    xmlSetProp(new_con, XML_CIB_ATTR_RESID1, res_id_1);    xmlNodePtr node_entry = xmlNewNode(NULL, XML_CIB_TAG_NVPAIR);			    xmlSetProp(node_entry, XML_ATTR_ID, var_name);//			xmlSetProp(node_entry, XML_CIB_ATTR_VARTYPE, subtype);    xmlSetProp(node_entry, XML_CIB_ATTR_VARVALUE, var_value);    xmlSetProp(node_entry, XML_CIB_ATTR_ACTION, "add");    xmlAddChild(new_con, node_entry);    FNRET(new_con);}