Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Exception hierarchy

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Exception hierarchy
  • Date: Sun, 18 Jan 2004 13:01:24 -0500

At 10:19 AM -0500 1/18/04, Elliotte Rusty Harold wrote:


This would mean IllegalDataException becomes a common superclass for pretty much anything that could go wrong as a result of verification issues. What was IllegalDataException in the past would now be IllegalContentException.

I've changed my mind about one thing already. IllegalContentException is the wrong name for this exception. In the XML spec "content" includes start-tags, end-tags, comments, and such as well as plain text. Perhaps IllegalCharacterDataException is better?

Technically an attribute value is not character data in the XML sense ("Text consists of intermingled character data and markup. [Definition: Markup takes the form of start-tags, end-tags, empty-element tags, entity references, character references, comments, CDATA section delimiters, document type declarations, processing instructions, XML declarations, text declarations, and any white space that is at the top level of the document entity (that is, outside the document element and not inside any other markup).]") but I think it's less likely to be confusing.
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA



Archive powered by MHonArc 2.6.24.

Top of Page