From: Adam Dickmeiss Date: Mon, 12 Oct 2009 08:29:56 +0000 (+0200) Subject: Make Pazpar2 work on Libxml2 2.4 X-Git-Tag: v1.2.2~10 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=eb092d99708bd6dbf4f1c46c6f478ed1285b48e0;p=pazpar2-moved-to-github.git Make Pazpar2 work on Libxml2 2.4 --- diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index a350786..2ceda81 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -1071,7 +1071,11 @@ struct conf_config *config_create(const char *fname, int verbose) { yaz_log(YLOG_LOG, "Configuration %s after include processing", fname); +#if LIBXML_VERSION >= 20600 xmlDocFormatDump(yaz_log_file(), doc, 0); +#else + xmlDocDump(yaz_log_file(), doc); +#endif } r = parse_config(config, n); }