A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
XML and Related Technologies
Iterating same level nodes
Joined: Oct 02, 2011
Mar 05, 2012 06:02:40
how to iterate the above XML to get the Country's
Have a nice day
Author and all-around good cowpoke
Joined: Mar 22, 2000
Mar 05, 2012 07:12:29
You need to get familiar with the standard Java library for manipulating XML.
Given the "World" org.w3c.Dom.Eement, you can getElementsByTagName("Country") to get a NodeList which you can use to iterate.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Iterating same level nodes
Japan’s Love For Bicycle
14th and 15th Centuries - not the Darkest Ages
Do the Taliban smoke the opium too?
The fastest way to have peace on earth
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014