» List all forums
» » Forum: Module Making
» » » Thread: Need help with XML
|Print at Feb 10, 2016 8:28:17 AM||View all posts in this thread on one page|
|Posted by troypulk at Jun 3, 2010 10:13:25 PM|
Need help with XML
I used mod2osis and made a XML out of my ESV bible.
I'm down to 4 errors after validating the XML with xmllint but the errors don't look like errors. unless I'm missing something.
Does anyone know why this is?
Thanks in advance
Here they are:
esv.xml:53: parser error : Opening and ending tag mismatch: div line 20 and chapter
Line 105 is the beginning of Chap. 4 not the ending
Here are the lines of errors
20 <div type="book" osisID="Gen">
5 <osisText osisIDWork="ESV" osisRefWork="bible" xml:lang="en" canonical="true">
3 <osis xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bibletechnologies.net/2003/OSIS/namespace http://www.bibltechnolgologies.net/OSIS/osisCore.2.1.1.xsd">
105 Gen.4<title subType="x-preverse" type="section">Cain and Abel</title>Now Adam knew Eve his wife, and she conceived and bore Cain, saying, <q level="1" marker="“" sID="01004001.1"/>I have gotten<note n="1" osisID="Gen.4.1!note.1" osisRef="Gen.4.1" type="explanation"><catchWord><hi type="italic">Cain</hi></catchWord> sounds like the Hebrew for <catchWord><hi type="italic">gotten</hi></catchWord></note> a man with the help of the <divineName>Lord</divineName>.<q eID="01004001.1" level="1" marker="”"/>
|Posted by mdbergmann at Jun 4, 2010 12:28:37 AM|
Re: Need help with XML
This actually should tell you the error.
Are you sure there is no closing div?
|Posted by troypulk at Jun 4, 2010 8:49:16 AM|
Re: Need help with XML
I'm just realizing what the problem is.
I've checked, there is no closing </div>
I've modified the mod2osis.cpp and can produce a valid osis.xml with the EMTV bible and now I'm going through the other bible versions to see if the mod2osis is working right.
So I'm trying to find the xml error in order to go back to the mod2osis and make changes, but these errors are in the wrong places.
There should be no </div> after the chapters it should be after the books.
There should be no </osis> and </osistext> after the chapters they should be at the end of the bible, which they are so I have go back into the mod2osis.cpp file and figure out why they're being reproduced where they don't belong.
Thanks for your comment it lit a light bulb in my head.
Current timezone is GMT
Feb 10, 2016 8:28:17 AM