[jdom-interest] Has any one done a JDOM <> JTreeModel adaptor

philip.nelson at omniresources.com philip.nelson at omniresources.com
Tue May 22 13:52:38 PDT 2001

> This is all do-able, and the JDOMNode idea is solid...I just 
> read an example
> of doing this very thing using a DOM node, the only 
> difference is that they
> didn't support attributes.
> Is it against the XML spec to include attribute objects in
> getMixedContent()? I think that would be very useful.

Ah Ha!

This is exactly what I have been experimenting with.  The interface I have
been exploring is made so that it could be used in subclasses or decorators
without signature collisions.  It has an iterator that includes attributes
but since you add on the code yourself, you could skip that feature.  The
multiple text node problem is still there though.  That could require some
special casing.

More information about the jdom-interest mailing list