Re: [xml] documents and end documents

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
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]