/* This file is part of YAZ proxy
- Copyright (C) 1998-2009 Index Data
+ Copyright (C) 1998-2011 Index Data
YAZ proxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
if (t)
*limit_pdu = atoi(t);
}
- if (ptr->type == XML_ELEMENT_NODE
+ if (ptr->type == XML_ELEMENT_NODE
&& !strcmp((const char *) ptr->name, "search"))
{
const char *t = get_text(ptr);
return_limit(ptr, keepalive_limit_bw, keepalive_limit_pdu,
&dummy, &dummy);
}
- if (ptr->type == XML_ELEMENT_NODE
+ if (ptr->type == XML_ELEMENT_NODE
&& !strcmp((const char *) ptr->name, "limit"))
return_limit(ptr, limit_bw, limit_pdu, limit_req,
limit_search);
- if (ptr->type == XML_ELEMENT_NODE
+ if (ptr->type == XML_ELEMENT_NODE
&& !strcmp((const char *) ptr->name, "target-timeout"))
{
const char *t = get_text(ptr);
}
else if (syntax)
{
- Odr_oid *match_oid
+ Odr_oid *match_oid
= yaz_string_to_oid_odr(yaz_oid_std(),
CLASS_RECSYN, match_type,
odr);
else
{
xmlNodePtr ptr2 = xmlCopyNode(ptr_explain, 1);
-
+
xmlDocPtr doc = xmlNewDoc((const xmlChar *) "1.0");
-
+
xmlDocSetRootElement(doc, ptr2);
-
+
xmlChar *buf_out;
xmlDocDumpMemory(doc, &buf_out, len);
char *content = (char*) odr_malloc(odr, *len);