[jdom-interest] getText() returns null or ""
Alex Chaffee
guru at edamame.stinky.com
Tue Oct 3 11:42:44 PDT 2000
> What's the deal with getText() returning null when it has no value?
...
> Thoughts? I'd like to suggest changing to returning the empty String
> when there's no value.
+1
This would also make getTextTrim more consistent. Right now
getTextTrim returns
<foo></foo> -> null
<foo> </foo> -> ""
(At least it should according to the docs; haven't tested.)
More information about the jdom-interest
mailing list