Results 1 to 2 of 2
Thread: random node from an xml file
- 04-13-2010, 08:21 PM #1
Member
- Join Date
- Apr 2010
- Posts
- 1
- Rep Power
- 0
random node from an xml file
Hello
I'm a beginner
how do i parse an xml document, and choose a random node from within it?
the xml file is as follows
<root>
<activity>
<activity>Running</activity>
</activity>
<activity>
<activity>Swimming</activity>
</activity>
<activity>
<activity>Football</activity>
</activity>
<activity>
<activity>Driving</activity>
</activity>
<activity>
<activity>At Work</activity>
</activity>
</root>
and i would like to be able to go through it, and choose a random node from it
i have gone all over google looking for similar examples "dom parser java random node" all those key words etc, but i'm stumped
any advice you guys can offer will be greatly appreciated
cheeeeeers
- 04-13-2010, 08:45 PM #2
Senior Member
- Join Date
- Mar 2010
- Posts
- 266
- Rep Power
- 9
Similar Threads
-
random file access and GUI
By leiferouis in forum New To JavaReplies: 1Last Post: 02-19-2009, 04:21 AM -
Random File Access
By viper110110 in forum New To JavaReplies: 11Last Post: 11-28-2008, 12:28 AM -
Random access to text file
By lunarbof in forum New To JavaReplies: 1Last Post: 11-05-2008, 08:53 PM -
Cannot display a random string from .dat file
By explosion242 in forum New To JavaReplies: 2Last Post: 09-18-2008, 01:48 PM
Bookmarks