[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAX: do we want a base class

  • From: David Megginson <ak117@f...>
  • To: xml-dev@i...
  • Date: Sat, 3 Jan 1998 13:39:56 -0500

Re: SAX: do we want a base class
David Ornstein writes:

 > My point is about a relationship: as the usefulness of the base
 > class climbs towards necessity, the probability of people using
 > SAX-implementing parsers *that don't come with the base class
 > supplied* declines.  This is only important iff the design of the
 > API is influenced by the assumption of the presence of the base
 > class.  Some of the "design issue" posts seemed to me to be heading
 > in that direction.  If we divide the world into SAX implementors
 > and SAX clients, I think that the base class is a useful thing for
 > *clients* to build and use; it's how I'd do it.  As such, I think
 > it probably doesn't belong on the implementor side of the line.

I should clarify: the SAX interfaces and the XmlAppBase base class
will be written only once for each programming language, and they will
live in their own package (in languages that use packages).
XmlAppBase will depend only on the interfaces for information -- in
other words, there will be no such thing as a SAX-implementing parser
without the base class (parser writers need not be concerned with the
base class at all).

In Java, for example, there would be three class files in the SAX
package (I'll deal with naming and packaging in a later posting):

  XmlParser.class	The interface for a SAX-aware parser
  XmlApplication.class	The interface for an object with event
                        handlers.
  XmlAppBase.class	A base class for an object with event handlers.

All Java-based XML parsers that use SAX will refer to this package,
and all will have these three class files available in the same
location.  The same would apply to C++ headers, etc.  I expect that in
Java XmlAppBase.class will weigh in at under 2K (perhaps far under).


All the best,


David

-- 
David Megginson                 ak117@f...
Microstar Software Ltd.         dmeggins@m...
      http://home.sprynet.com/sprynet/dmeggins/

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.