From: Adam Dickmeiss Date: Wed, 19 Mar 2008 22:00:38 +0000 (+0100) Subject: For yaz-marcdump, allow use of prefix in record element. X-Git-Tag: v3.0.30~71 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b93c50cd7770a18bddd602a612ccd83795cd4922;p=yaz-moved-to-github.git For yaz-marcdump, allow use of prefix in record element. Fixed marcdump's check for element name. Now using xmlTextReaderLocalName used instead of xmlTextReaderConstName. --- diff --git a/util/marcdump.c b/util/marcdump.c index a9a3061..03ae3a2 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -129,7 +129,7 @@ static void marcdump_read_xml(yaz_marc_t mt, const char *fname) if (type == XML_READER_TYPE_ELEMENT) { const char *name = (const char *) - xmlTextReaderConstName(reader); + xmlTextReaderLocalName(reader); if (!strcmp(name, "record")) { xmlNodePtr ptr = xmlTextReaderExpand(reader);