JDOM cool

From: Eric Armstrong (eric.armstrong@eng.sun.com)
Date: Sun Aug 13 2000 - 20:10:55 PDT


JDOM is a java library that takes the pain out of
using a DOM.

A DOM is like, UGLY. It's got element nodes, and
then nodes under that for text, CDATA, attributes.

While, logically, you think of a DOM as a tree of
elements, when you code for it you actually have
a tree of all those other things.

So, for example, you write code to process the
children of a node, you have to take into account
that the child-list contains those other nodes,
rather than simply the subelements you were expecting.

JDOM does a *very* nice job of turning the data
into a tree composed of elements, instead of one
composed of XML nodes.

It still puts the whole blinkin' thing in memory.
(Python's EasySAX is much better about that.)
But it looks a world easier to use than the
existing DOM implementations.



This archive was generated by hypermail 2.0.0 : Tue Aug 21 2001 - 17:57:50 PDT