Announcement: SAX 1998-01-12 Draft
James Clark
jjc at jclark.com
Tue Jan 13 10:47:57 GMT 1998
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 at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list