From: Thomas J. <tho...@in...> - 2003-03-13 22:09:13
|
> > Remove example.xml and try running the included example dom_parser. > > It should segfault. Is it a bug of the example or the library? > > The bug comes from the lib which doesn't check if context creation is > sucessfull. I'll commit a patch in a few minutes. :-) > On context creation failure the lib will now throw an internal_exceptio= n > with the message "cannot create parsing context". > If anybody think a new exception type is needed for that just tell me w= e'll > discuss it. In the mean time at least we'll not have a segfault. KISS =3D Keep It Simple Stupid Though detecting a "file not found" error via an exception could also be nice. Thomas |