File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
Don't get me started about those stupid
subject: Iterating same level nodes
The fastest way to have peace on earth
Japan’s Love For Bicycle
14th and 15th Centuries - not the Darkest Ages
Do the Taliban smoke the opium too?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014