xmlSetProp(doc->children, XML_ATTR_VERSION, CRM_VERSION); xmlSetProp(doc->children, XML_MSG_ATTR_SUBSYS, "none"); if(reference == 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)
createEmptyMsg(const char *reference){    xmlDocPtr doc;        doc = xmlNewDoc("1.0");    doc->children = xmlNewDocNode(doc, NULL, XML_MSG_TAG, NULL);    xmlSetProp(doc->children, XML_ATTR_VERSION, CRM_VERSION);    xmlSetProp(doc->children, XML_MSG_ATTR_SUBSYS, "none");    if(reference == NULL)    {	xmlSetProp(doc->children, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_REQUEST);	xmlSetProp(doc->children, XML_MSG_ATTR_REFERENCE, generateReference());    }    else    {	xmlSetProp(doc->children, XML_MSG_ATTR_MSGTYPE, XML_MSG_TAG_RESPONSE);	xmlSetProp(doc->children, XML_MSG_ATTR_REFERENCE, reference);    }        xmlSetProp(doc->children, XML_ATTR_TSTAMP, getNow());    return xmlDocGetRootElement(doc);}