[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Error handling
- From: Daniel Veillard <veillard redhat com>
- To: Hao Zhou <frankmail007 yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] Error handling
- Date: Wed, 28 Apr 2004 10:30:11 -0400
On Mon, Apr 26, 2004 at 12:54:05AM -0700, Hao Zhou wrote:
> Hi,
>
> I'm using xmlCreatePushParserCtxt by passing in a SAX2
> handler and then use the xmlParseChunk to do the
> parsing. But there is a problem which I can't sovle.
> The problem is once I got an error message when I call
> xmlParseChunk, the parser seems can't work any more
> untill I recreate it by calling
> xmlCreatePushParserCtxt again. Is there a way can
> continue to parse data by xmlParseChunk without
> reinitialization of xml parser?
No, the XML Specification is cristal clear on this,
fatal error are fatal, you cannot continue parsing the
given document, and must stop delivering data to the
application from the point this occured. If you can't
work with those constraints, you simply cannot use XML !
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]