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

Re: [xml] DOM vs xmlReader



On Wed, Nov 05, 2008 at 05:22:58PM -0800, Prashant R wrote:
> My question is that , given this scenario , does xmlreader still save me
> memory ,compared to DOM  ( in terms of storage allocated for parsing xml) as
> bytes from the stream would need to still
> be cached to decipher node information.

  DOM builds the full tree in memory. The reader building one a
fraction of the tree in memory at a given time. The reader should
save memory. Testing should confirm this.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


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