W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: DOM enhancements...

From: Stephen R. Savitzky <steve@crc.ricoh.com>
Date: 24 Aug 1998 11:54:25 -0700
To: Michael Amster <mamster@webeasy.com>
Cc: ANOQ of the Sun <anoq@vip.cybercity.dk>, www-dom@w3.org
Message-ID: <qcd89qmcri.fsf@gelion.crc.ricoh.com>
Michael Amster <mamster@webeasy.com> writes:

> 1. Streaming DOM (so entire tree is not in memory)
> 2. Node addressing or indexing

YES!  Streaming requires three things:

1. reliance on iterators for traversal, rather than indexing or link
   traversal.  (I was _really_ sorry to see NodeIterator and TreeIterator
   go; I've built an entire system around them.)

2. Allowing parent, child, and sibling links to be invalid at various
   times.  (In other words, an iterator can produce the next sibling even if
   a node's nextSibling attribute is null.)  (It might be better if there
   were a way to distinguish _really_ empty links from ``lazy'' links).

3. Allowing NodeList's to be static rather than ``live'' so that you can
   use them in a program as collections of nodes which might be appended to
   during a traversal.

 Stephen R. Savitzky   Chief Software Scientist, Ricoh Silicon Valley, Inc., 
<steve@rsv.ricoh.com>                            California Research Center
 voice: 650.496.5710   fax: 650.854.8740    URL: http://rsv.ricoh.com/~steve/
  home: <steve@starport.com> URL: http://www.starport.com/people/steve/
Received on Monday, 24 August 1998 14:48:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:04 UTC