[jdom-interest] Adding a JDOMParseException to org.jdom.input

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat Apr 5 06:26:32 PST 2003


At 6:15 PM +0100 1/16/03, Laurent Bihanic wrote:

>Use case: My main objective here was to be able to retrieve the envelope part
>of a document made of a protocol envelope and an application body, the
>envelope content being sufficient to return a protocol-compliant 
>fault response.

Interesting. I hadn't thought of this before. I may borrow the idea 
for XOM. See discussion on xml-dev.

However, there are also problems. For instance, if the 
well-formedness error is a missing end-tag, then the element with the 
missing end-tag will still appear in the partial tree. Is this OK?

And if the problem is a missing root element, then this may produce a 
Document object with no root element. We've generally tried to avoid 
this.  Could this violate any of the usual assumptions of JDOM on 
which other code might depend?
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/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