X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=retrieval%2Fd1_expat.c;fp=retrieval%2Fd1_expat.c;h=4370187b1115274fb7b64f821d92c1dc54759fcd;hb=aeec32da5e13c9f46062d07ac3c16582dbd479c8;hp=dc1ed78c6046c5dd35aa8839f5600116e37327b5;hpb=751fc8b0c5b555a41feb9d8c0bf8ac71d5707d25;p=yaz-moved-to-github.git diff --git a/retrieval/d1_expat.c b/retrieval/d1_expat.c index dc1ed78..4370187 100644 --- a/retrieval/d1_expat.c +++ b/retrieval/d1_expat.c @@ -2,7 +2,7 @@ * Copyright (c) 2002, Index Data. * See the file LICENSE for details. * - * $Id: d1_expat.c,v 1.3 2002-07-03 10:04:04 adam Exp $ + * $Id: d1_expat.c,v 1.4 2002-07-05 12:42:52 adam Exp $ */ #if HAVE_EXPAT_H @@ -46,6 +46,11 @@ static void cb_end (void *user, const char *el) static void cb_chardata (void *user, const char *s, int len) { struct user_info *ui = (struct user_info*) user; +#if 1 + yaz_log (LOG_DEBUG, "cb_chardata %.*s", len, s); + ui->d1_stack[ui->level] = data1_mk_text_n (ui->dh, ui->nmem, s, len, + ui->d1_stack[ui->level -1]); +#else int i; for (i = 0; id1_stack[ui->level] = data1_mk_text_n (ui->dh, ui->nmem, s, len, ui->d1_stack[ui->level -1]); } +#endif } static void cb_decl (void *user, const char *version, const char*encoding,