[jdom-interest] How can I get the next child element by same
name?
Adams, Dick W
DAdams07 at sprintspectrum.com
Wed Jun 5 04:38:09 PDT 2002
If you call getChildren(childname) instead, you'll get a list of ALL child
elements with the specified name. You can then access any of them as
required.
-----Original Message-----
From: dongst [mailto:jdst12 at sohu.com]
Sent: Wednesday, June 05, 2002 12:24 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] How can I get the next child element by same name?
hi,all
I use JDom b8,
when I want get a child element,I use code below:
org.jdom.element elementA = elementB.getchild("name1");
but how can I get the elementC whose name is "name1" too,
and it is the next element of elementA,
and elementB is the parent of elementA and elementC.
thanks
jack dong
jdst12 at sohu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020605/50fe0922/attachment.htm
More information about the jdom-interest
mailing list