Try this:
var verses = from v in xdoc.Elements("bible").Elements("testament").Elements("book").Elements("chapter").Elements("verse")
select new {
VerseId = v.Attribute("number").Value,
VerseText = v.Value
};
It should return:
VerseId VerseText
1 In the beginning God created the heaven and the earth.
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.
I have no idea how to load data into your
BibleLoad
class. In my opinion, you need to redesign it, to be able to store the collection of books, chapters and verses.
Please, check it:
Walkthrough: Creating Your Own Collection Class[
^]