[xml] Reinjecting SAX events
- From: Joachim Zobel <jz-2006 heute-morgen de>
- To: xml gnome org
- Subject: [xml] Reinjecting SAX events
- Date: Thu, 11 Jan 2007 20:18:36 +0100
Hi.
I want to use libxml2 to build a tree from existing SAX2 events. I
create a parser context with
// Since we will not do any SAX parsing, we give neither
// handler nor context.
fctx->parser = xmlCreatePushParserCtxt(NULL, NULL, NULL, 0, NULL);
but get a segfault when calling
xmlSAX2StartDocument(fctx->parser);
What am I doing wrong? What else should I do to properly initialize the
parser context?
Sincerely,
Joachim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]