xmlSetProp(xml_node, XML_ATTR_ID,          id); xmlSetProp(xml_node, XML_CIB_ATTR_RESTYPE,     type); xmlSetProp(xml_node, XML_ATTR_DESC,        name); xmlSetProp(xml_node, XML_CIB_ATTR_MAXINSTANCE, max_instances); xmlSetProp(xml_node, XML_ATTR_TSTAMP,      getNow());
set_xml_property_copy(xml_node, XML_ATTR_ID,          id); set_xml_property_copy(xml_node, XML_CIB_ATTR_RESTYPE,     type); set_xml_property_copy(xml_node, XML_ATTR_DESC,        name); set_xml_property_copy(xml_node, XML_CIB_ATTR_MAXINSTANCE, max_instances); set_xml_property_copy(xml_node, XML_ATTR_TSTAMP,      getNow());
newResource(const char *id, const char *type, const char *name, const char *max_instances){    CRM_DEBUG2("Creating " XML_CIB_TAG_RESOURCE " (%s).", id);    xmlNodePtr xml_node = xmlNewNode(NULL, XML_CIB_TAG_RESOURCE); // replace with #define s    xmlSetProp(xml_node, XML_ATTR_ID,          id);    xmlSetProp(xml_node, XML_CIB_ATTR_RESTYPE,     type);    xmlSetProp(xml_node, XML_ATTR_DESC,        name);    xmlSetProp(xml_node, XML_CIB_ATTR_MAXINSTANCE, max_instances);    xmlSetProp(xml_node, XML_ATTR_TSTAMP,      getNow());        FNRET(xml_node);}