Am Dienstag, 17. Januar 2006 20:20 schrieb dara:

Hello Clara

> Re why you are not getting a message, are you wrapping the parse call in
> a "try" and then "catching" exceptions that may be thrown ?

Oh, i did that, but i did not want to show all the boaring code.
Nevertheless, An uncought exception would lead at least to an error (but not 
to a message)

> Running these samples and looking through their source are generally
> good ways to get started with Xerces.
> When I run "bin/DOMPrint -v=always todo.xml" with your sample xml and
> dtd, I do get a number of errors, so I would suggest to check your code
> against the sample.

Yes, thank you. I did as you told me and i found the mistake:

The sample overwrites the HandlerBase::error and shows the exception there.
My code uses the default HandlerBase::error which does nothing.

When I wrote my code, i followed the DOM Programming Guide.
The example on page (201 and 202) in the PDF-document
looked to me like it trys to handle all errors, cause there where many 
try-catch blocks.
I asked myself, if the default HandlerBase would rethrow exceptions and i 
tryed it out: it did in some cases! I have not found a hint, that there is a 
difference between default handling of error and fatalerror. Meanwhile i 
looked at HanderBase.hpp and found the documentation there. 

Thank You!
Christoph

-- 
---------------------------------------------------------------------
Christoph Kies ([EMAIL PROTECTED])
Mobil: 0179/ 5910 805
Fax: 089/ 1488 213 020 (bis 31.03.2006)

Lindenkamp 4
59469 Ense
---------------------------------------------------------------------

Reply via email to