A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Iterating same level nodes
14th and 15th Centuries - not the Darkest Ages
Do the Taliban smoke the opium too?
The fastest way to have peace on earth
Japan’s Love For Bicycle
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014