I've got xml text of a Bible version. I want to get the text in the following format:

class Bible {
  Book[] bs;
}

class Book {
  Chapter[] cs;
}

class Chapter {
  Verse[] vs;
}

class Verse {
  string v;
}

Here's a part of the xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bible>
<b n="Genesis">
<c n="1">
<v n="1">In the beginning, God created the heavens and the earth.</v>
<v n="2">The earth was without form and void, and darkness was over the face of the deep. And the Spirit of God

I would like any pointers on xml with D.

- Joelcnz

Reply via email to