doc = xmlParseFile(filename); set_xml_property_copy(xmlDocGetRootElement(doc), "generated", "false");
FILE *cib_file = fopen(filename, "r"); root = file2xml(cib_file); set_xml_property_copy(root, "generated", "false"); fclose(cib_file);
readCibXmlFile(const char *filename){	struct stat buf;	int s_res = stat(CIB_FILENAME, &buf);	FNIN();		xmlDocPtr doc = NULL;	if (s_res == 0) {		doc = xmlParseFile(filename);		set_xml_property_copy(xmlDocGetRootElement(doc),				      "generated",				      "false");	} else {		cl_log(LOG_WARNING,		       "Stat of (%s) failed, file does not exist.",		       CIB_FILENAME);	}		xmlNodePtr root = xmlDocGetRootElement(doc);	if (verifyCibXml(root) == FALSE) {		free_xml(root);//		FNRET(createEmptyCib());		root = NULL;	}	FNRET(root);}