mvnForum Homepage Welcome Guest  | Guest Setting  |  Register  |   Login
  Search  
Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


»

No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
Post new Thread
Author
Previous Thread This topic has been viewed 2418 times and has 2 replies Next Thread
Male troypulk
Regular



USA
Joined: Apr 10, 2010
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Need help with XML

Hello,

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
</chapter>
^
esv.xml:79: parser error : Opening and ending tag mismatch: osisText line 5 and chapter
</chapter>
^
esv.xml:104: parser error : Opening and ending tag mismatch: osis line 3 and chapter
</chapter>
^
esv.xml:105: parser error : Extra content at the end of the document
Gen.4<title subType="x-preverse" type="section">Cain and Abel</title>Now Adam kn
^


Line 105 is the beginning of Chap. 4 not the ending

Here are the lines of errors

20 <div type="book" osisID="Gen">
53 </chapter>

5 <osisText osisIDWork="ESV" osisRefWork="bible" xml:lang="en" canonical="true">
79 </chapter>

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">

104 </chapter>

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="”"/>
[Jun 3, 2010 10:13:25 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male mdbergmann
Inventory
Member's Avatar

Germany
Joined: Jun 12, 2008
Post Count: 640
Status: Offline
Reply to this Post  Reply with Quote 
Re: Need help with XML


parser error : Opening and ending tag mismatch: div line 20 and chapter

This actually should tell you the error.
Are you sure there is no closing div?


Manfred
[Jun 4, 2010 12:28:37 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male troypulk
Regular



USA
Joined: Apr 10, 2010
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Re: Need help with XML

Thanks,

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.
[Jun 4, 2010 8:49:16 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread