Re: [xml] documents and end documents
- From: Daniel Veillard <veillard redhat com>
- To: Elliotte Harold <elharo metalab unc edu>
- Cc: xml gnome org
- Subject: Re: [xml] documents and end documents
- Date: Sun, 26 Nov 2006 11:46:02 -0500
On Sun, Nov 26, 2006 at 09:48:33AM -0500, Elliotte Harold wrote:
I've got a program that just echoes out all the nodes it sees via
xmlreader. I've noticed two funny things:
1. I never see a document node, node type 9. Should there be a document
node somewhere?
Can't remember. We tried to match MS C# behaviour.
2. There doesn't seem to be any option for an end document notification?
How do I know when I've reached the end of the document? Especially,
how do I tell the difference between this and a well-formedness error?
-1 versus 0 at the C level.
http://xmlsoft.org/html/libxml-xmlreader.html#xmlTextReaderRead
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]