Re: [xml] xmlTextReaderExpand expanding until the end of a tree ?



On Thu, Apr 29, 2004 at 06:33:22PM +0800, åæ wrote:
if I use function xmlTextReaderExpand, shouldn't I get a xmlNode whose next node is NULL ? or at least the 
expanded tree can't extend further into group (name="aa").

  The only garantee you have is that xmlTextReaderExpand will expand
all the subtree, it may actually grow more of the tree than just the 
subtree since the chunk parsed will in general not end up exactly
on the boundary of the subtree and more data might be processed.
  So getting a next node is likely, it's actually one of the ways
to be sure the subtree is actually complete.
  So assuming I understood your question correctly, then the answer is
that it's normal and even expected most of the time.

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]