-/* $Id: alvis.c,v 1.18 2007-08-21 07:49:18 adam Exp $
+/* $Id: alvis.c,v 1.19 2007-08-31 07:02:24 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
xmlDocDumpMemory(doc, &buf_out, &len_out);
if (p->flagShowRecords)
fwrite(buf_out, len_out, 1, stdout);
- (*p->setStoreData)(p, buf_out, len_out);
+ if (p->setStoreData)
+ (*p->setStoreData)(p, buf_out, len_out);
xmlFree(buf_out);
xmlFreeDoc(doc);
struct filter_info *tinfo = clientData;
odr_reset(tinfo->odr);
- if (tinfo->split_level == 0)
+ if (tinfo->split_level == 0 || p->setStoreData == 0)
return extract_full(tinfo, p);
else
return extract_split(tinfo, p);
-/* $Id: extract.c,v 1.261 2007-08-22 08:01:32 adam Exp $
+/* $Id: extract.c,v 1.262 2007-08-31 07:02:24 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
init_extractCtrl(zh, &extractCtrl);
+ extractCtrl.setStoreData = 0;
+
r = (*rt->extract)(recTypeClientData, &extractCtrl);
}
-/* $Id: mod_dom.c,v 1.38 2007-06-19 19:39:54 adam Exp $
+/* $Id: mod_dom.c,v 1.39 2007-08-31 07:02:24 adam Exp $
Copyright (C) 1995-2007
Index Data ApS
else
xmlDocDumpMemory(store_doc ? store_doc : doc, &buf_out, &len_out);
- (*p->setStoreData)(p, buf_out, len_out);
+ if (p->setStoreData)
+ (*p->setStoreData)(p, buf_out, len_out);
xmlFree(buf_out);
if (store_doc)
switch(input->type)
{
case DOM_INPUT_XMLREADER:
- if (input->u.xmlreader.split_level == 0)
+ if (input->u.xmlreader.split_level == 0 || p->setStoreData == 0)
return extract_xml_full(tinfo, input, p);
else
return extract_xml_split(tinfo, input, p);