W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2001

Re: Patterns for NamedNodeMap implementation (was Hi)

From: David Brownell <david-b@pacbell.net>
Date: Wed, 17 Oct 2001 10:42:01 -0700
To: Curt Arnold <carnold@houston.rr.com>, anu sha <anusha_2002gva@yahoo.com>
Cc: www-dom@w3.org
Message-id: <037101c15733$07e23b60$6800000a@brownell.org>
> There are several open-source implementations (Xerces-C, Xerces-J, Crimson,
> Mozilla, DOM4J, libxml, etc) that you can examine for implementation
> patterns,

Ditto the GNUJAXP version of DOM (evolved from what seems to have been
the first generally available implementation of DOM Level 2 in Java).  In


DomAttr and DomNamedNodeMap classes ... also linear searches, on
the grounds that most XML documents don't use very many attributes.

> >  So,please tell me,according to DOM specification what
> >  should be the key of NamedNodeMap?Is it
> >  qualifiedName(two-part name containing prefix and
> >   localName) or two-part name
> >   containing localName and namespaceURI?

Results compatible with both views are needed at the same time,
another reason to stick to simpler data structures.

- Dave
Received on Wednesday, 17 October 2001 13:43:43 UTC

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