Make Pazpar2 work on Libxml2 2.4
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Oct 2009 08:29:56 +0000 (10:29 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Oct 2009 08:29:56 +0000 (10:29 +0200)
src/pazpar2_config.c

index a350786..2ceda81 100644 (file)
@@ -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);
     }