[jdom-interest] Jdom + something like getNextElement() ???

Steven De Schutter stevendeschutter at yahoo.com
Sun Nov 26 06:10:04 PST 2000


Hello ,

What for code do you have to use in your Java-program
( using JDOM ) if you want to retrieve the information
of the next children ???

Example ... 

<studentlist>
    <student>
        <name> Steven </name>
        <class> 4ICT </class>
    </student>
    <student>
        <name> Caroline </name>
        <class> 4 OT </class>
   </student>
</studentlist>

With ...

Element root = doc.getRootElement();
String name =
root.getChild("student").getChild("name").getContent()

you receive the information of student Steven ... but
how can you get the information of the next node ( or
how can you get the class of Caroline ???

Greetings
Steven



=====
|
+-> SCOOPY  _______________________________________________
    Steven De Schutter      Azalealaan 9, 2980 Zoersel  
    tel : 0497/256.326      Tel/Fax : (+32) 03.385.19.06
    email : scoopy at freegates.be     sms : mr.scoopy at winbox.com ( Enkel voor spoedgevallen !!! )

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



More information about the jdom-interest mailing list