Display random element from XML in TextView of iPhone -


i working on daily verse bible, , i'd random. have xml of verses looks this:

<bible translation="kjv"> <testament name="old">      <book name="genesis">         <chapter number="1">             <verse number="1">in beginning god created heaven , earth.</verse>             <verse number="2">and earth without form, , void; , darkness upon face of deep. , spirit of god moved upon face of waters.    </verse>  <!-- rest of xml here -->                       </chapter>              </book>    </testament> 

i use parser create nsstring of text 1 of verses, listed there several of each of elements, , named differently. suggestions how this?

you use plist instead of xml implementation. find plists easy implement , manage.

you load plist dictionary , randomly select there.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -