Re: [xml] TextReader vis-a-vis SAX
- From: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- To: veillard redhat com
- Cc: xml gnome org, ranjit huawei com
- Subject: Re: [xml] TextReader vis-a-vis SAX
- Date: Thu, 14 Feb 2008 15:10:43 +0200
On Thu, Feb 14, 2008 at 2:41 PM, Daniel Veillard <veillard redhat com> wrote:
On Wed, Feb 13, 2008 at 06:16:49PM +0200, Andrew W. Nosenko wrote:
> On Aug 29, 2007 3:32 PM, Daniel Veillard <veillard redhat com> wrote:
> > On Wed, Aug 29, 2007 at 06:50:53PM +0530, harbhanu wrote:
> > > >> What libxml2 creates is a sliding window over the full document. It
> > > >> contains the current node and its ancestors. That's the only guarantee
>
> Therefore, if I understand correctly the phrase "It contains the
> current node and its ancestors", the input document should be fully
> loaded into memory and parsed at first time because of root node (in
> any use-case, not only "<a><ab><abc><abcd> ... </abcd></abc></ab></a>"
> case below)?
No. A node and its ancestors doesn't make a full document. It this
was the case you would not be able to parse and validate documents
of more than 4 GB in near constant memory, which the reader allows.
Thanks and sorry, I misread "node and its ancestors" as "node and its
descendants" :-(
--
Andrew W. Nosenko <andrew w nosenko gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]