[jdom-interest] Content as a Text Node (was JDOM JSR)

wes at tralfamadore.com wes at tralfamadore.com
Fri May 18 13:55:31 PDT 2001


Can you float the proposed interface for Text?

Other than getParent() and some ability to note
current view criteria (CDATA vs. plaintext), what's in

Is there a case to make it a (private) inner class, or
will developers need to instantiate new Text() objects


--- Brett McLaughlin <brett at newInstance.com> wrote:
> Agreed. However, I think that we can be careful in
> how we say that; for
> instance, saying that "all element content is stored
> as a Text node" is not
> good. However, we can say (truthfully) "You can
> directly get an element's
> content as a String, without having to deal with a
> Text node class." This is
> the advantage people want, I think; the detail of
> how it's stored
> internally, or that you CAN get it in a Text node,
> is really irrelevant to
> most people, I think.

More information about the jdom-interest mailing list