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
Post a Comment