You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<XMLBIBLExmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"biblename="ENGLISHNLT">
<BIBLEBOOKbnumber="1"bname="Genesis">
<CHAPTERcnumber="1">
<VERSvnumber="1"> In the beginning God created the heavens and the earth. </VERS>
<VERSvnumber="2"> The earth was formless and empty, and darkness covered the deep waters. And the Spirit of God was hovering over the surface of the waters.</VERS>
<VERSvnumber="3"> Then God said, "Let there be light," and there was light.</VERS>
</CHAPTER>
</BIBLEBOOK>
</XMLBIBLE>
Here is an example of the XML file i'm trying to parse. It is every book in the bible broken down in the BIBLEBOOK key and each chapter/verse there after. this is only Genesis 1:1-3 but there are 66 books and PLENTY of Chapters and Verses.
When I use the above code I get the first chapter of each book. If I remove the [CHAPTER] I only get the first book of the bible. I also can't seem to then iterate over or access the VERS values.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is an example of the XML file i'm trying to parse. It is every book in the bible broken down in the BIBLEBOOK key and each chapter/verse there after. this is only Genesis 1:1-3 but there are 66 books and PLENTY of Chapters and Verses.
When I use the above code I get the first chapter of each book. If I remove the [CHAPTER] I only get the first book of the bible. I also can't seem to then iterate over or access the VERS values.
Beta Was this translation helpful? Give feedback.
All reactions