-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
* See the file LICENSE for details.
- *
- * $Id: marc_read_xml.c,v 1.4 2007-12-17 20:59:30 adam Exp $
*/
/**
}
#endif
+#if YAZ_HAVE_XML2
int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr)
{
-#if YAZ_HAVE_XML2
yaz_marc_reset(mt);
for(; ptr; ptr = ptr->next)
if (yaz_marc_read_xml_leader(mt, &ptr))
return -1;
return yaz_marc_read_xml_fields(mt, ptr->next);
-#else
- return -1;
-#endif
}
+#endif
/*