xmlNodePtr root = xmlDocGetRootElement(cib); if (verifyCibXml(root)) { FNRET(root);
if (verifyCibXml(cib_root)) { FNRET(cib_root);
createEmptyCib(void){	(void)_ha_msg_h_Id; // until the lmb cleanup	// real code...	xmlDocPtr cib = xmlNewDoc("1.0");	xmlNodePtr cib_root = NULL, config = NULL, status = NULL;		cib->children = create_xml_doc_node(cib, XML_TAG_CIB);	cib_root = cib->children;	config = create_xml_node(cib_root, XML_CIB_TAG_CONFIGURATION);	status = create_xml_node(cib_root, XML_CIB_TAG_STATUS);	set_node_tstamp(cib_root);	set_node_tstamp(config);	set_node_tstamp(status);		set_xml_property_copy(cib_root, "version", "1");	set_xml_property_copy(cib_root, "generated", "true");	create_xml_node(config, XML_CIB_TAG_NODES);	create_xml_node(config, XML_CIB_TAG_RESOURCES);	create_xml_node(config, XML_CIB_TAG_CONSTRAINTS);		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);}