Re: [xml] TextReader vis-a-vis SAX

What libxml2 creates is a sliding window over the full document. It
contains the current node and its ancestors. That's the only guarantee
So, by this does it means that a document with only one nesting will have
the complete document in memory...
For ex....
        <a><ab><abc><abcd>. ..... </abc></abcd></ab></a>
In this case its memory requirement will be almost equivalent to DOM.
If yes, then in this case parsing using reader will have perennial problems
of DOM for parsing large documents.

Can schema validation, using reader, be done on the stream also, like the
one expected from API xmlSchemaValidateStream?

Thanks again both for your clarifications and prompt replies :)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]