diff options
author | Dave Beckett <dave@dajobe.org> | 2005-03-25 01:24:59 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2005-03-25 01:24:59 +0000 |
commit | e191a09090567a759209a9e07d378e353274a126 (patch) | |
tree | d19b2a46ee0e4d9efa64dd3cc19565aa58795709 /src/raptor_libxml.c | |
parent | 14017c2de215b8da8f18bf46731237d6b560d0ea (diff) | |
download | raptor-e191a09090567a759209a9e07d378e353274a126.tar.gz |
(raptor_libxml_init_sax_error_handlers): Added to just init the
static error handlers for libxml for grddl.
Diffstat (limited to 'src/raptor_libxml.c')
-rw-r--r-- | src/raptor_libxml.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/raptor_libxml.c b/src/raptor_libxml.c index 1204b37d..958e7f41 100644 --- a/src/raptor_libxml.c +++ b/src/raptor_libxml.c @@ -589,6 +589,18 @@ raptor_libxml_init(xmlSAXHandler *sax) { void +raptor_libxml_init_sax_error_handlers(xmlSAXHandler *sax) { + sax->warning=raptor_libxml_warning; + sax->error=raptor_libxml_error; + sax->fatalError=raptor_libxml_fatal_error; + +#ifdef RAPTOR_LIBXML_XMLSAXHANDLER_INITIALIZED + sax->initialized = 1; +#endif +} + + +void raptor_libxml_free(xmlParserCtxtPtr xc) { libxml2_endDocument(xc); xmlFreeParserCtxt(xc); |