[jdom-interest] setText() to replace children?

Brett McLaughlin brett at newInstance.com
Wed Jul 11 07:04:28 PDT 2001


> I certainly don't think that setText(...) should be recursive,
> so for symmetry, getText() should not be either.
>
> But, there is obviously a call from some folks to have a recursive-esque
> getText() functionality.
>
> So, maybe a getXPathText(), or a getText(boolean recurse).

So far, this has seemed like the most sane decision. Current operations
remain unchanged, while the ability to do things like Bob and Elliotte have
described seem perfectly simple.  Thoughts?

-Brett




More information about the jdom-interest mailing list