[jdom-interest] Child number

Noam Tamim noamt at yahoo.com
Wed Apr 17 10:22:47 PDT 2002

--- KhanhVinh Tran <kvtran999 at yahoo.com> wrote:
> Thanks everyone for your advice.
> My data is more complicated than what I put in the
> previous sample.

You have 2 options, as I see it. You can either look for elements
recursivly (or at a specific depth) with an Iterator, then call
iterator.remove() when you found it;  or, you can use XPath (but
I'm not XPath expert). In any case, when you remove an element
from a list, all of its children are removed with it.


Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

More information about the jdom-interest mailing list