Display random element from XML in TextView of iPhone

Padonak

New Member
I am working on something to do a daily verse from the Bible, and I'd like it to be random. I have an xml of verses which looks like this:\[code\]<bible translation="KJV"><testament name="Old"> <book name="Genesis"> <chapter number="1"> <verse number="1">In the beginning God created the heaven and the earth.</verse> <verse number="2">And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters. </verse><!-- THE REST OF THE XML HERE --> </chapter> </book> </testament>\[/code\]I would like to use a parser to create a NSString of text from one of the verses, but as they are all listed as there could be several of each of those elements, and are all named differently. Any suggestions for how I could do this?
 
Back
Top