Hi all,
I am using a libxml parser for quick downloading and display. My problem is in some cases I need to stop the parser while it is processing. Is it possible to do? Can you guys please suggest me on this.
Thanks in advance, Sekhar Bethalam.
Hi all,
I am using a libxml parser for quick downloading and display. My problem is in some cases I need to stop the parser while it is processing. Is it possible to do? Can you guys please suggest me on this.
Thanks in advance, Sekhar Bethalam.
If you're using the SAX push interface (created with xmlCreatePushParserCtxt()
) you can somehow signal to the controlling code that you wish to abort, and it can stop calling xmlParseChunk()
. In this way you can stop the parsing at the end of the current 'chunk'.
If you need to abort immediately, you can probably achieve it by throwing an exception within the callback.