[jdom-interest] Recursively Modifying the JDOM before output.
Jason Hunter
jhunter at collab.net
Fri Jun 1 13:40:55 PDT 2001
Gary Montgomery wrote:
>
> So we save <kid/> off to the side with getChildren().
> setText("foo") changes the tree to:
>
> <root>
> foo
> </root>
>
> then after addChildren():
>
> <root>
> foo
> <kid/>
> </root>
That's one workaround. I'd like to have something better.
We could also just put the text before or after the other content? That
might be less ugly. Perhaps we could be fancy (too fancy?) and set it
at the first non-whitespace text node. As a newbie, what would you
expect?
-jh-
More information about the jdom-interest
mailing list