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


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: multiple handlers

[ Lists Home | Date Index | Thread Index ]
  • From: "Michael Kay" <M.H.Kay@eng.icl.co.uk>
  • To: "David Megginson" <ak117@freenet.carleton.ca>, "xml-dev Mailing List" <xml-dev@ic.ac.uk>
  • Date: Tue, 24 Feb 1998 15:03:25 -0000

>In a private message, one SAX user raised the issue again of multiple
>Any further thoughts on this issue?
I've implemented a layer on top of SAX that provides not only multiple
handlers, but also per-element-type handlers. Since it is trivial to
implement this on top of SAX, I suggest it shouldn't go into SAX itself.

(The way you do multiple handler is to write a class MultiHandler that
implements the DocumentHandler interface and accepts in its constructor two
DocumentHandlers; the methods then call these two in turn. Of course either
of them can itself be a MultiHandler).

Mike Kay

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/
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