Re: [xml] Parsing multiple documents with SAX - event handlers not triggered for subsequent docs
- From: Daniel Veillard <veillard redhat com>
- To: Rachael Churchill <rachael churchill linguamatics com>
- Cc: xml gnome org
- Subject: Re: [xml] Parsing multiple documents with SAX - event handlers not triggered for subsequent docs
- Date: Sat, 31 Jan 2009 08:16:58 +0100
On Fri, Jan 30, 2009 at 01:51:38PM +0000, Rachael Churchill wrote:
Hi
I'm having trouble parsing more than one document with the SAX
interface. I can parse the first one fine, using xmlParseChunk, and set
terminate=1 to indicate that this is the final chunk from that document,
and xmlParseChunk returns success. Then I try to parse a second
document, and none of the event handlers are triggered for that
document, but xmlParseChunk still returns success for that document.
Do I need to do something else, as well as setting terminate=1, to
indicate the end of the first document?
a Parser context can be used only for one document ... unless you
reset it with the adequate funtion between 2 parsing.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]