[xml] Reinjecting SAX events



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]