[jdom-interest] Text class (Modified)
jhunter at collab.net
Mon May 28 11:32:44 PDT 2001
Elliotte Rusty Harold wrote:
> What should we do if stringValue is null? I suggest throwing an
> immediate NullPointerException.
Current behavior in elt.setText(null) is to treat null the same as empty
> What should we do if stringValue is empty? Does it make sense to
> allow an empty text node?
elt.setText("") definitely makes sense. Perhaps it could be stored as
the absence of list content, though, and not as an empty Text node.
More information about the jdom-interest