Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Re: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial)

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] Re: [xml-dev] Underwhelmed (WAS: [xml-dev] XOM micro tutorial)
  • Date: Wed, 25 Sep 2002 14:05:34 -0400

At 12:18 PM -0500 9/25/02, Bradley S. Huffman wrote:

Or take the JDOM approach and throw a exception for any operation that follows
except for one's that would make it a well-formed document.


I considered that early on and rejected it. A Document object should represent a well-formed XML document, period. Clients should be able to rely on that.

What I'm really looking for is a solution that will cleanly solve the use-case while hiding the implementation ugliness inside the API. I could live with a malformed document or one with a fake root, provided there was no way to actually get a reference to such a thing.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+




Archive powered by MHonArc 2.6.24.

Top of Page