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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: SAX2: Namespace proposal

[ Lists Home | Date Index | Thread Index ]
  • From: Stefan Haustein <stefan.haustein@trantor.de>
  • To: James Clark <jjc@jclark.com>, "xml-dev@ic.ac.uk" <xml-dev@ic.ac.uk>
  • Date: Mon, 20 Dec 1999 01:52:08 +0100

> For example, I think there are good arguments for moving to a
> 
> interface DocumentHandler {
>   void startElement(StartElementEvent event)
>   void endElement(EndElementEvent event)
>   ...
> }

I also would prefer this kind of interface. Further advantage besides
the improved extensability might be that 

- building a new object seems some overhead at the first sight, 
  but in JAVA also a new String is a new object...

- some computation could be performed on demand only(?) 

- I think it is less difficult to remember the access method names 
  than a more or less unmotivated order of a lot of parameters

- the ElementEvent access methods could be a subset of the DOM access
methods (!)

please do not forget to include the "old" SAX 1 methods in HandlerBase
and call them from the new methods as default behaviour preserving
compatibility at least with applications extending
HandlerBase instead of implementing DocumentHandler. 

All the best,

Stefan


-- 
KJAVA AWT project: www.trantor.de/kawt
SAX-based access to WBXML and WML: www.trantor.de/wbxml

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 unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe 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