From: Adam Dickmeiss Date: Wed, 17 Mar 2004 18:43:35 +0000 (+0000) Subject: Fix encoding of xsd:string to use text instead of CDATA X-Git-Tag: YAZ.2.0.17.debian.1~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6d50f66faab9c47d834c5433ae776ec6fc7df994;p=yaz-moved-to-github.git Fix encoding of xsd:string to use text instead of CDATA --- diff --git a/src/srw.c b/src/srw.c index d65b258..10b9b69 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.24 2004-03-01 17:33:03 adam Exp $ + * $Id: srw.c,v 1.25 2004-03-17 18:43:35 adam Exp $ */ #include @@ -42,7 +42,7 @@ xmlNodePtr add_xsd_string_n(xmlNodePtr ptr, const char *elem, const char *val, xmlNodePtr add_xsd_string(xmlNodePtr ptr, const char *elem, const char *val) { if (val) - return xmlNewChild(ptr, 0, elem, val); + return xmlNewTextChild(ptr, 0, elem, val); return 0; } @@ -52,7 +52,7 @@ static void add_xsd_integer(xmlNodePtr ptr, const char *elem, const int *val) { char str[30]; sprintf(str, "%d", *val); - xmlNewChild(ptr, 0, elem, str); + xmlNewTextChild(ptr, 0, elem, str); } }