if (*format == '1' && len)
{
/* try to XML format res */
- xmlKeepBlanksDefault(0);
- xmlDocPtr doc = xmlParseMemory(res, *len);
+ xmlDocPtr doc;
+ xmlKeepBlanksDefault(0); /* get get xmlDocFormatMemory to work! */
+ doc = xmlParseMemory(res, *len);
if (doc)
{
if (rec->xml_mem)
return get_record_format(rec, len, npr, YAZ_MARC_MARCXML, charset,
format);
}
+ else if (!strcmp(type, "txml"))
+ {
+ return get_record_format(rec, len, npr, YAZ_MARC_TMARCXML, charset,
+ format);
+ }
else if (!strcmp(type, "raw"))
{
return get_record_format(rec, len, npr, YAZ_MARC_ISO2709, charset,
return ZOOM_options_get_int(c->options, "timeout", 30);
}
+ZOOM_API(void) ZOOM_connection_close(ZOOM_connection c)
+{
+ do_close(c);
+}
+
/*
* Local variables:
* c-basic-offset: 4