For yaz-marcdump, allow use of prefix in record element.
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 19 Mar 2008 22:00:38 +0000 (23:00 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 19 Mar 2008 22:00:38 +0000 (23:00 +0100)
Fixed marcdump's check for element name. Now using
xmlTextReaderLocalName used instead of xmlTextReaderConstName.

util/marcdump.c

index a9a3061..03ae3a2 100644 (file)
@@ -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);