[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re:question: NodeIterator in DOM

  • From: Mike Champion <mcc@a...>
  • To: akitoshi.yoshida@s... (Akitoshi Yoshida), xml-dev@i...
  • Date: Fri, 15 May 1998 12:16:18 -0400

Re:question: NodeIterator in DOM
At 11:19 AM 5/15/98 -0400, Akitoshi Yoshida wrote:
>in example:
>we have nodes A B C D E.
>the iterator is positioned just before C.
>remove C, D, and B.
>then we have A E and the iterator position should be
>positioned just before E.
>so toNextNode() and toPrevNode() should return E and A, respectively.

Yes.

>
>NodeIterator may mark its current iterator position by
>an integer offset or by an object reference. but it must
>be notified for certain insert and remove operations to
>preserve the above semantics. Is it correct?

I'm not sure.  There's been a lot of discussion of how to implement
NodeIterators on www-dom; see the archives at
http://lists.w3.org/Archives/Public/www-dom/
I believe different designs exist, some of which require iterators to be
notified on insert and delete operations, and others which maintain
"markers" in the tree that move around as the tree is edited.  I have not
followed this closely enough to give you a definitive answer, but look at
the www-dom archives, and especially Don Park's SAXDOM implementation,
because Don participated in the discussions of this a couple of weeks ago
and I believe his latest release reflects what he learned.

Good luck,

Mike


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.