#include "sru-p.h"
+#define SOLR_MAX_PARAMETERS 100
+
#if YAZ_HAVE_XML2
#include <libxml/parser.h>
#include <libxml/tree.h>
-#define SOLR_MAX_PARAMETERS 100
-
const char *xml_node_attribute_value_get(xmlNodePtr ptr, const char *node_name, const char *attribute_name) {
struct _xmlAttr *attr;
int ZOOM_handle_sru(ZOOM_connection c, Z_HTTP_Response *hres,
zoom_ret *cret)
{
+#if YAZ_HAVE_XML2
int ret = 0;
const char *addinfo = 0;
ret = -1;
}
return ret;
+#else
+ return -1;
+#endif
}
/*
#include <config.h>
#endif
+#include <stdlib.h>
#include <yaz/options.h>
#include <yaz/record_conv.h>
case 'V':
break;
case 0:
+#if YAZ_HAVE_XML2
if (!p)
{
xmlDocPtr doc = xmlParseFile(arg);
fclose(f);
}
break;
+#else
+ fprintf(stderr, "%s: YAZ not compiled with Libxml2 support\n",
+ prog);
+ usage();
+ break;
+#endif
default:
usage();
}
- }
+ }
+#if YAZ_HAVE_XML2
yaz_record_conv_destroy(p);
+#endif
if (no_errors)
exit(1);
exit(0);