|
YAZ 5.35.1
|
Parsing MARCXML collection using Libxml2's SAX parser. More...
Go to the source code of this file.
Typedefs | |
| typedef struct yaz_marc_sax_t_ * | yaz_marc_sax_t |
Functions | |
| yaz_marc_sax_t | yaz_marc_sax_new (yaz_marc_t mt, void(*cb)(yaz_marc_t mt, void *), void *cb_data) |
| construct marc SAX parser | |
| xmlSAXHandlerPtr | yaz_marc_sax_get_handler (yaz_marc_sax_t ctx) |
| return Libxml SAX handler pointer | |
| void | yaz_marc_sax_destroy (yaz_marc_sax_t ctx) |
| destroys marc SAX parser | |
Parsing MARCXML collection using Libxml2's SAX parser.
Definition in file marc_sax.h.
| typedef struct yaz_marc_sax_t_* yaz_marc_sax_t |
Definition at line 45 of file marc_sax.h.
| void yaz_marc_sax_destroy | ( | yaz_marc_sax_t | ctx | ) |
destroys marc SAX parser
| ctx |
Definition at line 164 of file marc_read_sax.c.
References yaz_marc_sax_t_::cdata, yaz_marc_sax_t_::indicators, yaz_marc_sax_t_::tag, wrbuf_destroy(), and xfree.
| xmlSAXHandlerPtr yaz_marc_sax_get_handler | ( | yaz_marc_sax_t | ctx | ) |
return Libxml SAX handler pointer
Definition at line 159 of file marc_read_sax.c.
References yaz_marc_sax_t_::saxHandler.
| yaz_marc_sax_t yaz_marc_sax_new | ( | yaz_marc_t | mt, |
| void(*)(yaz_marc_t mt, void *) | cb, | ||
| void * | cb_data | ||
| ) |
construct marc SAX parser
| mt | marc handle |
| cb | function called for each record |
| cb_data | data to be passed to each cb call |