[jdom-interest] NoSuch*Exceptions in JDOM

Petri Wessman orava at termiitti.akumiitti.fi
Mon Jul 10 00:50:43 PDT 2000

On Sun, 9 Jul 2000 17:00:11 -0400, "Ken Klose" <ken.klose at imedium.com> said:

Ken> I hope its not an intrusion for a JDOM newbie to pipe up in what
Ken> seems like a conversation between JDOM authors, but I must agree
Ken> with Jason.  I'm generally one to take the "ivory tower" approach
Ken> of refraining from exceptions but if the DTD sames that <A> must
Ken> contain <B> and <B> must contain <C> than having a <B> Element
Ken> that doesn't contain <C> IS exceptional.

Afaik, the discussion was about the handling of elements and
attributes that are optional. I agree that elements that should be
there (according to the DTD or Schema or whatever) should generate
exceptions. However, there are *lots* of cases where the elements /
attributes are optional, and currently handling these requires a
morass of throw-catch clauses.


More information about the jdom-interest mailing list