[jdom-interest] Important proposal: Element/Document changes
tsasala at hifusion.com
tsasala at hifusion.com
Thu Jul 27 05:13:26 PDT 2000
From personal experience, without a replaceChild/Element method, you
will end up with exactly what you suggested: comment, comment, <foo>.
>
> But what if you want to change the "root" element ? I'm guessing that I'd
> have to do;
>
> Element foo = new Element("foo");
>
> doc.removeContent(element);
> doc.addContent(foo);
>
> But won't that end up with;
>
> <!-- comment -->
> <!-- comment -->
> <foo>
>
> Or have I missed the plot ?
>
> --Jools
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list