[jdom-interest] Internal DTD subset verification

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed May 1 11:27:40 PDT 2002


At 1:18 PM -0400 5/1/02, Alex Rosen wrote:
>Interestingly, DOM takes a limited verification approach. It's defined to
>throw exceptions for invalid names (e.g. element or attribute names) but not
>for illegal characters in data (e.g. attribute values or text nodes). I'm
>pretty sure that it doesn't check most of the other non-trivial WF
>constraints. That argues against extensive WF checking everywhere being the
>"spirit of XML".
>

It actually varies depending on version of DOM, and implementation. 
Part of the penalty of an interface-based API and runtime exceptions.

In the past, we have advertised our more stringent checking as one of 
the advantages of JDOM over DOM.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list