instead of xmlReadFile. Use xmlDocDump instead of xmlDocFormatDump
on Libxml2 version < 2.6.0.
-/* $Id: config.c,v 1.10 2007-01-12 15:08:44 quinn Exp $ */
+/* $Id: config.c,v 1.11 2007-01-14 17:34:31 adam Exp $ */
#include <string.h>
int read_config(const char *fname)
{
- xmlDoc *doc = xmlReadFile(fname, NULL, 0);
+ xmlDoc *doc = xmlParseFile(fname);
const char *p;
if (!nmem) // Initialize
-/* $Id: pazpar2.c,v 1.28 2007-01-12 23:37:15 adam Exp $ */
+/* $Id: pazpar2.c,v 1.29 2007-01-14 17:34:31 adam Exp $ */
#include <stdlib.h>
#include <stdio.h>
if (global_parameters.dump_records)
{
fprintf(stderr, "Record:\n----------------\n");
+#if LIBXML_VERSION >= 20600
xmlDocFormatDump(stderr, rdoc, 1);
+#else
+ xmlDocDump(stderr, rdoc);
+#endif
}
return rdoc;
}