From eb092d99708bd6dbf4f1c46c6f478ed1285b48e0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Oct 2009 10:29:56 +0200 Subject: [PATCH] Make Pazpar2 work on Libxml2 2.4 --- src/pazpar2_config.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 1.7.10.4