Re: [xml] Push mode - error checking
- From: Daniel Veillard <veillard redhat com>
- To: Heiko Rupp <heiko rupp WiredMinds de>
- Cc: xml gnome org
- Subject: Re: [xml] Push mode - error checking
- Date: Tue, 6 Nov 2001 10:34:41 -0500
On Tue, Nov 06, 2001 at 03:07:39PM +0100, Heiko Rupp wrote:
Hello,
can I when using the parser push mode with xmlParseChunk()
get parser errors before the entire file is read?
I am using the example at http://xmlsoft.org/library.html
and I only get an error, when the entire input is read.
What I want is e.g that xmlParseChunk() would flag an error,
after e.g. the following is read
----snip
<a>
</b>
----snip
Hum, the parser will raise an error when it finds it.
You can check the status of the parser from the context passed
to xmlParseChunk(), ctxt->wellFormed should stay to 1.
If not a fatal error was raised,
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.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]