set_xml_property_copy(xml_node, XML_ATTR_ID,      id); set_xml_property_copy(xml_node, XML_CIB_ATTR_CONTYPE, CIB_VAL_CONTYPE_DEFAULT);
CRM_DEBUG2("Creating " XML_CIB_TAG_CONSTRAINT " (%s)...", id);
newConstraint(const char *id){    CRM_DEBUG2("Creating " XML_CIB_TAG_CONSTRAINT " (%s)...", id);        xmlNodePtr xml_node = create_xml_node(NULL,  XML_CIB_TAG_CONSTRAINT);    set_xml_property_copy(xml_node, XML_ATTR_ID,      id);    set_xml_property_copy(xml_node, XML_CIB_ATTR_CONTYPE, CIB_VAL_CONTYPE_DEFAULT);// these should be filled in by the parent as appropriate/*     set_xml_property_copy(xml_node, "constraint_type", type); *//*     set_xml_property_copy(xml_node, "r_id_1",          r_id_1); *//*     if (c_object->r_id_2 != NULL)    set_xml_property_copy(xml_node, "r_id_2",     c_object->r_id_2); *//*     if (c_object->var_name != NULL)  set_xml_property_copy(xml_node, "var_name",   c_object->var_name); *//*     if (c_object->var_value != NULL) set_xml_property_copy(xml_node, "var_value",  c_object->var_value); */    set_xml_property_copy(xml_node, XML_CIB_ATTR_CLEAR,   CIB_VAL_CLEARON_DEFAULT);    set_xml_property_copy(xml_node, XML_ATTR_TSTAMP,  getNow());    FNRET(xml_node);}