OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   SAX, Java, and Namespaces (was Re: Restricted Namespaces for XML)

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Thu, 4 Feb 1999 18:54:37 -0500 (EST)

Tyler Baker writes:

 > If SAX were to make a simple requirement that all strings that
 > represent symbols (like names) were to be interned then things
 > would be a lot cheaper.  The same can be said of the DOM as well.

The problem is that Java's own intern is so terribly inefficient that
no serious parser writer will use it (most of them have their own,
custom interns).

Even then, you wouldn't get any help with the "xmlns:" prefix
matching, which is the costliest part.  The most efficient way to do
namespace processing is directly in the parser (which has to look at
every attribute name anyway), but my own tests have shown that filter
layer on top of SAX isn't too bad.

All the best,


David Megginson                 david@megginson.com

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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS