crm_insane("Copying memory into crm_ space"); if(xml_buffer != NULL && len > 0) {  buffer = crm_strdup(xml_buffer); xmlFree(xml_buffer); } crm_insane("Buffer coppied");  free_xml(xml_node);            for(lpc = 0; lpc < len; lpc++) { if(buffer[lpc] == '\n') { crm_debug("Reset newline at %d", lpc); buffer[lpc] = ' '; } } crm_debug("Processed %d chars for newlines", lpc); #else char *mutable_ptr = NULL;  crm_malloc(buffer, sizeof(char)*20000); mutable_ptr = buffer;  if(dump_data_element(0, &mutable_ptr, an_xml_node, FALSE) < 0) { crm_crit("Could not dump the whole message"); CRM_ASSERT(FALSE); } crm_trace("Dumped: %s", buffer); #endif
dump_xml_unformatted(xmlNodePtr an_xml_node) {	int len = 0;	xmlBufferPtr xml_buffer;	xmlChar *buffer = NULL;	if (an_xml_node == NULL) {		return NULL;	}	crm_insane("Initializing Parser");	xmlInitParser();	crm_insane("Dumping data");		xml_buffer = xmlBufferCreate();	len = xmlNodeDump(xml_buffer, an_xml_node->doc, an_xml_node, 0, 0);		if(len < 0) {		crm_err("Error dumping xml");		xmlBufferFree(xml_buffer);		return NULL;	}		buffer = (xmlChar*)crm_strdup(xmlBufferContent(xml_buffer)); 	xmlBufferFree(xml_buffer);	if (!buffer) {		crm_err("memory allocation failed");	}	crm_insane("Cleaning up parser");	xmlCleanupParser();	return buffer;}