javascript - best data structure for below xml of book in html -


data.xml:

<catalog abbrev="kjv" name="xyz">  <book num="gen">    <chapter num="1">      <page num="1">in beginning ...</page>      <page num="2">and earth .... </page>    </chapter>    <chapter num="2"><page num="1">.....</book>  <book>

i have create hierarchical structure user can navigate or down dynamically.

means first of have show title of book: attribute of book element when user click on book title see list of chapter..then next when click on chapter see verses list...then when click on particular verses see single verses...


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -