[jdom-interest] How to get nextSibling, prevSibling, firstChild
and lastChild in JDOM?
Gordon Tyler
gordon.tyler at sitraka.com
Tue Sep 17 08:00:36 PDT 2002
Meghasyam Bokam wrote:
> I am new to JDOM, and I see there are no methods to get nextSibling,
> prevSibling, firstChild and lastChild of an ELEMENT. Can anybody help me
> to write those specific methods which I can use in my application.
Use the parentElement.getChildren() method which will return a List of
all the child Elements. You should find methods similar to what you are
looking for on that List.
Ciao,
Gordon
--
Gordon Tyler
Software Developer, R&D
Sitraka -- Performance is Mission Critical
More information about the jdom-interest
mailing list