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

Re: SAX Exception Handling

  • From: Peter Murray-Rust <peter@u...>
  • To: James Clark <jjc@j...>, XML Developers' List <xml-dev@i...>
  • Date: Mon, 04 May 1998 11:49:00

sax exception
At 17:45 04/05/98 +0700, James Clark wrote:

>The original goal of SAX was to be simple and easy to use for
>application writers.  

I hope that it still is - I appreciate that we have had some drift, but
much of it has centered on Exceptions.

>I don't think requiring this sort of mumbo jumbo
>even for trivial programs is consistent with this goal.
>I don't see an ideal solution, 

This seems to be a problem that is fundamental to Exception handling in
general (not SAX-specific). It's compounded by the fact that we need to (a)
interoperate with Java Exceptions (b) assume that SAX will be put alongside
packages that have yet another set of Exceptions.

I spent yesterday afternoon hacking the new SAX/AElfred including the
extraction of error messages and transferring them to display of nonwf
documents. My blunderings weren't pretty (I failed to realise that one test
example threw FileNotFoundException rather than a parsing error, and
couldn't understand why I couldn't extract the SAXException message). But I
think I can work with the current SAX. (I was one of those who suggested
SAX should 'wrap' Exceptions, so pillory me.)

>but I can think of several possibilities
>in addition to the old solution and the current solution, any of which I
>think would be an improvement over the current solution:

[... workable solutions snipped ...]

I am sure that David will look at these carefully - I think the final
decision is essentially his - he has put in *so* much work and got enough
public and private mail to make a balanced decision.  David must feel like
he's on a never-ending marathon - if he feels that SAX1.0gamma is 'it', I
think we should accept it. [Every finalisation has bits that someone
doesn't like, even XML...]


Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary

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...)


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.
First Name
Last Name
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.