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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Announcement: SAX 1998-01-12 Draft

[ Lists Home | Date Index | Thread Index ]
  • From: James Clark <jjc@jclark.com>
  • To: xml-dev Mailing List <xml-dev@ic.ac.uk>
  • Date: Tue, 13 Jan 1998 17:40:38 +0700

Tyler Baker wrote:

> > ErrorHandler needs an error method in addition to fatal and warning. It
> > would be better if all methods had a single argument of XmlException.
> >
> 
> For callbacks I am not so sure that you need a new Exception to encapsulate data
> that could be passed as arguments.

We don't need a new one: we have one already.  The advantage of passing
an object  is that it's easier for parsers to provide richer error
information (by subclassing XmlException).
 
> > Is AttributeMap required to implement clone?  I think it probably ought
> > to be.

> I am not sure why it is necessary to be clonable.

Because the spec says:

  * <p>This map will be valid only during the invocation of the
  * <code>startElement</code> callback: if you need to use attribute
  * information elsewhere, you will need to make your own copies.</p>

If it doesn't implement cloneable, how do you make your own copy?

James


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