xmlSetProp(cmd, XML_MSG_ATTR_REFERENCE, reference); xmlSetProp(cmd, XML_LRM_ATTR_OP       , operation); xmlSetProp(cmd, XML_LRM_ATTR_IDFILTE  , id_filter); xmlSetProp(cmd, XML_LRM_ATTR_TYPEFILTE, type_filter);
set_xml_property_copy(cmd, XML_MSG_ATTR_REFERENCE, crm_msg_reference); set_xml_property_copy(cmd, XML_LRM_ATTR_OP       , operation); set_xml_property_copy(cmd, XML_LRM_ATTR_IDFILTE  , id_filter); set_xml_property_copy(cmd, XML_LRM_ATTR_TYPEFILTE, type_filter);
createLrmdRequest(gboolean isLocal, const char *operation, 		  const char *type_filter, const char *id_filter		  xmlNodePtr data){    xmlNodePtr root = NULL, cmd = NULL;    const char *reference;    if(isLocal)    {	xmlDocPtr doc = xmlNewDoc("1.0");	doc->children = xmlNewDocNode(doc, NULL, XML_REQ_TAG_CIB, NULL);	cmd = doc->children;	root = cmd;	reference = generateReference();    }    else    {	xmlNodePtr request;	root = createEmptyMsg(NULL);	xmlSetProp(root, XML_MSG_ATTR_SUBSYS, "cib");	request   = xmlNewChild(root, NULL, XML_MSG_TAG_REQUEST, NULL);	cmd       = xmlNewChild(request, NULL, XML_REQ_TAG_LRM, NULL);	reference = xmlGetProp(root, XML_MSG_ATTR_REFERENCE);    }    xmlSetProp(cmd, XML_MSG_ATTR_REFERENCE, reference);    xmlSetProp(cmd, XML_LRM_ATTR_OP       , operation);    xmlSetProp(cmd, XML_LRM_ATTR_IDFILTE  , id_filter);    xmlSetProp(cmd, XML_LRM_ATTR_TYPEFILTE, type_filter);        return root;}