Re: [xml] Error handling



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]