[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:
<root>
Here is some text
<kid/>
Here is more text
</root>
getText() returns "\n Here is some text\n \n Here is more text".
Now, what should setText("foo") do to the tree?
-jh-
More information about the jdom-interest
mailing list