[jdom-interest] Removing Elements

Rolf Lear jdom at tuis.net
Mon Apr 9 10:29:37 PDT 2012


Hi Brashiro.

I think (at least I hope) you are mistaken.

You should be able to remove an Element in a number of ways....

Assuming that you have a Element emt which is item 3 in the 'parent'
ContentList, you should be able to do any one of:

emt.detach();
parent.removeContent(emt);
parent.getContent().remove(3);

Rolf




On Mon, 09 Apr 2012 12:47:56 -0400, "Bashiro" <bashiro at myway.com> wrote:
> Hello Folks!
> First of all thanks to the jDom team for version 2.0!
> Congrats to us all...
> 
> My question is; I am trying to remove an element in jDom. It only
removes
> the element if
> the element is located at [0].  Is there a good code or a good book to
> help me with that ?
> 
> Thanks
> 
> Bashiro
> Drammen-Norway
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com


More information about the jdom-interest mailing list