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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: SAX2: Handler Interfaces

[ Lists Home | Date Index | Thread Index ]
  • From: David Megginson <david@megginson.com>
  • To: "'xml-dev@xml.org'" <xml-dev@xml.org>
  • Date: Wed, 15 Mar 2000 14:58:11 -0500 (EST)

Box, Don writes:

 > > 1. In Java, it's not possible to use multiple class inheritance, so a
 > >    class that needs to inherit from something else (say, HashMap)
 > >    cannot also inherit from HandlerBase (SAX1) or DefaultHandler
 > >    (SAX2); that means that many implementors have to implement *every*
 > >    method in the interface.  
 > 
 > I wasn't advocating folding the methods of all four interfaces into
 > a single "mega-interface". Rather, I was advocating a change to the
 > way an XMLReader implementation acquires the "auxiliary" interfaces
 > once it gets a content handler.

I don't think that it would be a good idea to change that: first, it
won't work very well in vanilla C++, and second, it makes it
impossible, say, to use your own error handling routines together any
other handler derived from DefaultHandler.


All the best,


David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************




 

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

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