xmlDocPtr doc = xmlParseMemory(buffer, strlen(buffer)); if (doc == NULL) { cl_log(LOG_INFO, "XML Buffer was not valid...\n Buffer: %s", buffer); } xmlNodePtr root = xmlDocGetRootElement(doc);
xmlNodePtr root = string2xml(buffer);
readCibXml(char *buffer){	xmlDocPtr doc = xmlParseMemory(buffer, strlen(buffer));	if (doc == NULL) {		cl_log(LOG_INFO,		       "XML Buffer was not valid...\n Buffer: %s",		       buffer);	}	xmlNodePtr root = xmlDocGetRootElement(doc);	if (verifyCibXml(root) == FALSE) {		free_xml(root);		FNRET(createEmptyCib());	}	FNRET(root);}