- From: Sander Bos <sander@x-hive.com>
- Date: Fri, 19 Dec 2003 12:11:54 +0100
- To: <www-dom-ts@w3.org>
> This should result in an fatal error being reported to the error > handler. I've assumed that any fatal error during a parse > would result > in a null return value, there is no provision for throwing a checked > exception (such as an io exception) and returning a partial document > would break XML's requirement that you can't ignore fatal errors. > However, the spec should be more explicit on the return value and/or > exceptions expected during parsing failures. I'll try to > flesh out more > failure tests and then raise the issue to the WG. Oracle throws a > INVALID_STATE_ERR though it isn't a scenarion described in the > exceptions list, Xerces-J throws a NullPointerException. I already raised this issue more or less at the end of http://lists.w3.org/Archives/Public/www-dom/2003OctDec/0057.html There should be an exception as far as I'm concerned, not a null return value. Not just for empty inputs but also for incorrect documents, missing files etc. Kind regards, --Sander.
Received on Friday, 19 December 2003 06:16:45 UTC