[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reinventing the wheel (an implementor point of view)
- From: Robin Berjon <robin@knowscape.com>
- To: xml-dev@lists.xml.org
- Date: Tue, 27 Feb 2001 01:05:51 +0100
Arnaud Sahuguet <sahuguet@gradient.cis.upenn.edu> wrote:
>
> The DOM API should be extended to look more a like
> an XPath API, to make calls more efficient. Also
> supporting an iterator model would be great.
Unless we mean different things by iterator, DOM2 (section Traversal)
includes a NodeIterator interface. It is probably possible to optimize a
DOM implementation to have a fast get_elements_by_tagname, or at least to
quickly be able to turn a tree into a list, which is what you want for
speedy XPath.
-- robin b.
"Windows may be pretty. And easy. But it has no depth or soul. It's like
the one-night stand of operating systems. You feel cheap after using it."
-- Steph, in User Friendly