X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrw.c;h=d65b2589f3a37958e43ce8ba610d2c0cda164dae;hb=06151390083d3f8875bf7ed4b113942f6cccf9f4;hp=07031c8b631df26b6852fee69be90785fdcd3fff;hpb=d6fb3aa1d14381512225362ac585de1dd426ce1e;p=yaz-moved-to-github.git diff --git a/src/srw.c b/src/srw.c index 07031c8..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.22 2004-02-23 12:12:25 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; @@ -318,7 +318,7 @@ static int yaz_srw_diagnostics(ODR o, xmlNodePtr pptr, Z_SRW_diagnostic **recs, { int i; xmlNsPtr ns_diag = - xmlNewNs(pptr, "http://www.loc.gov/zing/srw/diagnostics/", 0); + xmlNewNs(pptr, "info:srw/schema/1/diagnostic-v1.1", 0); for (i = 0; i < *num; i++) { const char *std_diag = "info:srw/diagnostic/1/";