[jdom-interest] (no subject)

Jason Hunter jhunter at collab.net
Sun Nov 26 16:51:53 PST 2000


Use getChildren() to get a List of children.

-jh-

Steven De Schutter wrote:
> 
> Hello ,
> 
> What for code do you have to use in your
> Java-Application if you want to retrieve the
> information of the second ( 3rd , ... )  child ???
> 
> <studentlist>
>     <student>
>         <name> Steven </name>
>         <class> 4ICT </class>
>     </student>
>     <student>
>         <name> Caroline </name>
>         <class> 4 OT </class>
>    </student>
> </studentlist>
> 
> With ...
> 
> String name =
> root.getChild("student").getChild("name").getContent()
> 
> you receive the information of student Steven ( first
> node ) ... 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/
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list