Re: [xml] Push mode - error checking



Salut,

can I when using the parser push mode with xmlParseChunk()
get parser errors before the entire file is read?
I am using the example at http://xmlsoft.org/library.html
and I only get an error, when the entire input is read.

[..]
  Hum, the parser will raise an error when it finds it.
You can check the status of the parser from the context passed
to xmlParseChunk(), ctxt->wellFormed should stay to 1.
If not a fatal error was raised, 

Thanks, got it now.

Would it make sense to change the above example to something
more like the attached to show how this works (and prevent 
questions like mine in the future)?

 Heiko

Attachment: push.c
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]