xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_NODES)); xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_RESOURCES)); xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_CONSTRAINTS)); xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_STATUS));  xmlNodePtr root = xmlDocGetRootElement(cib); if (verifyCibXml(root)) {
create_xml_node(cib->children, XML_CIB_TAG_NODES); create_xml_node(cib->children, XML_CIB_TAG_RESOURCES); create_xml_node(cib->children, XML_CIB_TAG_CONSTRAINTS); create_xml_node(cib->children, XML_CIB_TAG_STATUS);  xmlNodePtr root = xmlDocGetRootElement(cib); if (verifyCibXml(root)) {
createEmptyCib(void){    (void)_ha_msg_h_Id; // until the lmb cleanup    // real code...    xmlDocPtr cib = xmlNewDoc("1.0");//    xmlNodePtr tree, subtree;    cib->children = create_xml_doc_node(cib, "cib");    set_xml_property_copy(cib->children, "version", "1");    set_xml_property_copy(cib->children, "generated", "true");    set_xml_property_copy(cib->children, XML_ATTR_TSTAMP, getNow());            xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_NODES));    xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_RESOURCES));    xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_CONSTRAINTS));    xmlAddChild(cib->children, create_xml_node(NULL, XML_CIB_TAG_STATUS));    xmlNodePtr root = xmlDocGetRootElement(cib);    if (verifyCibXml(root))    {		FNRET(root);    }    cl_log(LOG_CRIT, "The generated CIB did not pass integrity testing!!  All hope is lost.");    FNRET(NULL);}