NAAZ
NAAZ

Reputation: 1

Parser issue in libxml2

I am facing issue

I am trying to replace Xerces-C with libxml2, but when I parse my data in my application, it returns:

SAX Exception: Error while parsing via xmlParseChunk, parseStatus = 5

parserCtx = xmlCreatePushParserCtxt(&sax_name_Handler, parser, NULL, 0, NULL);
int parseStatus = xmlParseChunk(parserCtx, xml, strlen(xml),0);

I tried

parserCtx = xmlCreatePushParserCtxt(&sax_name_Handler, Null, NULL, 0, NULL);

but got this

SAX exception: Error while parsing via xmlParseChunk, parseStatus=1 in message:

Upvotes: 0

Views: 51

Answers (0)

Related Questions