X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrw.c;h=d65b2589f3a37958e43ce8ba610d2c0cda164dae;hb=94d2f62cf9d0185e933e238ae36081b00e43d1a0;hp=7f571490731ec9e72c6cc4102a187b430f7d54ff;hpb=9911c0d04369165de4401aa6f9c908da3b22038e;p=yaz-moved-to-github.git diff --git a/src/srw.c b/src/srw.c index 7f57149..d65b258 100644 --- a/src/srw.c +++ b/src/srw.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: srw.c,v 1.23 2004-02-23 12:57:19 adam Exp $ + * $Id: srw.c,v 1.24 2004-03-01 17:33:03 adam Exp $ */ #include @@ -113,7 +113,7 @@ static int match_xsd_XML_n(xmlNodePtr ptr, const char *elem, ODR o, if (!match_element(ptr, elem)) return 0; ptr = ptr->children; - while (ptr && ptr->type != XML_TEXT_NODE && ptr->type != XML_COMMENT_NODE) + while (ptr && (ptr->type == XML_TEXT_NODE || ptr->type == XML_COMMENT_NODE)) ptr = ptr->next; if (!ptr) return 0;