* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* $Id: marcdisp.h,v 1.19 2006-10-09 21:02:41 adam Exp $ */
+/* $Id: marcdisp.h,v 1.21 2006-12-13 11:25:17 adam Exp $ */
/**
* \file marcdisp.h
#include <stdio.h>
#include <yaz/wrbuf.h>
+#include <yaz/xmltypes.h>
+
YAZ_BEGIN_CDECL
/** \brief a yaz_marc_t handle (private content) */
#define YAZ_MARC_ISO2709 4
/** \brief Output format: MarcXchange */
#define YAZ_MARC_XCHANGE 5
+/** \brief Output format: check only (no marc output) */
+#define YAZ_MARC_CHECK 6
/** \brief supply iconv handle for character set conversion .. */
YAZ_EXPORT void yaz_marc_iconv(yaz_marc_t mt, yaz_iconv_t cd);
/** \brief parses MARCXML/MarcXchange record from xmlNode pointer
\param mt handle
- \param xmlnode is a pointer to root xmlNode pointer
+ \param ptr is a pointer to root xml node
Returns 0=OK, -1=ERROR
*/
-YAZ_EXPORT int yaz_marc_read_xml(yaz_marc_t mt, const void *xmlnode);
+YAZ_EXPORT int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr);
/** \brief writes record in line format
\param mt handle
Sets leader[9]='a' . Returns 0=OK, -1=ERROR .
*/
-
YAZ_EXPORT int yaz_marc_write_marcxml(yaz_marc_t mt, WRBUF wrbuf);
/** \brief writes record in MarcXchange XML