Re: [xml] Error handling

On Mon, Apr 26, 2004 at 12:54:05AM -0700, Hao Zhou wrote:

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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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