[jdom-interest] Recursively Modifying the JDOM before output.

Jason Hunter jhunter at collab.net
Fri Jun 1 13:01:53 PDT 2001

> This works, but I sure would like to understand why setText() causes element
> to loose it's children. Or if there is something
> else going on here, what it is.

Picture this:

  Here is some text
  Here is more text

getText() returns "\n  Here is some text\n  \n  Here is more text".

Now, what should setText("foo") do to the tree?


More information about the jdom-interest mailing list