set_xml_property_copy(doc->children, XML_ATTR_VERSION, CRM_VERSION); set_xml_property_copy(doc->children, XML_MSG_ATTR_SUBSYS, "none"); if (crm_msg_reference == NULL) { set_xml_property_copy(doc->children, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_REQUEST); set_xml_property_copy(doc->children, XML_MSG_ATTR_REFERENCE, generateReference());
set_xml_property_copy(lrmd_msg, XML_ATTR_VERSION, CRM_VERSION); set_xml_property_copy(lrmd_msg, XML_MSG_ATTR_SUBSYS, "none"); if (crm_msg_reference == NULL) { set_xml_property_copy(lrmd_msg, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_REQUEST); set_xml_property_copy(lrmd_msg, XML_MSG_ATTR_REFERENCE, generateReference());
createEmptyMsg(const char *crm_msg_reference){    xmlDocPtr doc;        doc = xmlNewDoc("1.0");    doc->children = create_xml_doc_node(doc, NULL, XML_MSG_TAG, NULL);    set_xml_property_copy(doc->children, XML_ATTR_VERSION, CRM_VERSION);    set_xml_property_copy(doc->children, XML_MSG_ATTR_SUBSYS, "none");    if (crm_msg_reference == NULL)    {	set_xml_property_copy(doc->children, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_REQUEST);	set_xml_property_copy(doc->children, XML_MSG_ATTR_REFERENCE, generateReference());    }    else    {	set_xml_property_copy(doc->children, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_RESPONSE);	set_xml_property_copy(doc->children, XML_MSG_ATTR_REFERENCE, crm_msg_reference);    }        set_xml_property_copy(doc->children, XML_ATTR_TSTAMP, getNow());    return xmlDocGetRootElement(doc);}