Try catching SAXException also. There was a thread in the xalan group a
little while back that mentioned all the different types of exceptions that
may be thrown.
xerces:
SAXException
XMLException
DOM_DOMException
xalan:
XSLException
XalanDOMException
Dave Connet
> -----Original Message-----
> From: Alexander Zeyliger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Re: error thrown by parser
>
>
>
> It looks like xerces throws exceptions of type XMLErrs::Codes (which
> is an enum). My platform is Solaris 8 with Forte 6.1, and the
> compiler (or is it debugger?) seems to get confused: I think
> they treat enums as ints, and don't really know what to catch
> when an int is thrown.
>
> In my application, if an incomplete XML file is passed to the
> SAX parser, one of those exception gets thrown and the consequences
> range from the debugger error messages and its not being able
> to break on throw or catch clauses (in debug build) to
> program crashes (in
> release build -- I should propbably start catching integers and
> not just XMLExceptions).
>
> Does anyone have any thoughts on this?
> Would this be a xerces misfeature or compiler bug?
>
> Thank you,
> AZ
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]