|
|
#1 |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
Parsing errors
The html code of my epub file passed Calibre's bug check, but Ingram Spark is saying it has Parsing errors. I can't figure out how to fix them. Can anyone please help? These are the parsing errors, do you need to see the html?
(RSC-005): /content.opf: Error while parsing file: element "guide" incomplete; missing required element "reference" (RSC-005): /Green_Transport.html: Error while parsing file: element "span" not allowed here; expected the element end-tag or element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "... (RSC-005): /Uses_for_a_bucket.html: Error while parsing file: element "brclass__calibre8_" not allowed anywhere; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b",... Thanks |
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,491
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#3 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,372
Karma: 1589505
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
As for the other errors, you need to post the HTML code. You can even post the EPUB file: just run the ScrambleEbook plugin on it, before sending. |
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,892
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Why did you start a new thread. You asked these questions here...
https://www.mobileread.com/forums/sh...d.php?t=374762 |
|
|
|
|
|
#5 |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
Here's the html of the page with the span element parsing error:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Unknown</title> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> </head> <body class="calibre"> <p class="block_25" lang="en">Green Transport</p> <p class="block_19">*</p> <p class="block_15" lang="en">“Fossil fuel” transportation, such as cars, lorries and aeroplanes, create massive amounts of pollution. Electric cars are currently produced in a way that is harmful to the environment, and they give off radiation. </p> <p class="block_15"><span lang="en"><span class="calibre4"> It is possible to power cars, lorries and aeroplanes with renewable energy, and to make them out of recyclable materials. Henry Ford made a car out of Hemp, and he powered it with Hemp.</span></span><span lang="en"> An aeroplane has now been made out of hemp. Electric cars were common a hundred years ago before the petroleum industry became so influential. Electric car batteries don’t need to use cobalt and lithium, they can use hemp batteries or even run on water.</span></p> <p class="block_29" lang="en">Cycling is much better for the environment, and for health. Public transportation is also much more efficient and some countries are starting to power public transport with renewable energy. Walking is even better for the environment.</p> <p class="block_29" lang="en">Ride sharing and carpooling is a greener way to get around. Instead of thousands of cars each carrying one person, we can take turns giving lifts to friends and colleagues.</p> <p class="block_19">*</p> <p class="block_2">*</p><span lang="en"><br class="calibre7" id="calibre_pb_45"/> </span><p></p> </body></html> Here's the html of the page with the brclass parsing error: <?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"><head> <title>green living guide ebook nopagenos</title> <link type="text/css" rel="stylesheet" href="page_styles.css"/> <link type="text/css" rel="stylesheet" href="stylesheet.css"/> </head><body><p class="block_54" lang="en"><brclass__calibre8_/></p> <p class="block_54" lang="en">Uses for a Bucket</p> <p class="block_55" lang="en">Rainwater harvesting, growing vegetables, container, bird house, brewing, bin, compost toilet, water filter, stool, washing machine, bike storage, hose storage, fire extinguisher, carrying things, backpack, shower, storage, sink for washing dishes, swing, stilts, mouse trap, bee hive, drum, snow brick mould, compost bin, auto feeder…</p> <p class="block_53" lang="en" id="calibre_pb_46">*</p> </body></html> Thanks |
|
|
|
|
|
#6 |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
(RSC-005): /content.opf: Error while parsing file: element "guide" incomplete; missing required element "reference"
This parsing error wasn't fixed by connecting the pages in set semantics |
|
|
|
|
|
#7 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 53,783
Karma: 181843001
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Did you try removing the error line in the content.opf file. Perhaps something as trivial as posting that section of the content.opf?
|
|
|
|
|
|
#8 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,372
Karma: 1589505
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Code:
<p><span lang="en"><br class="calibre7" id="calibre_pb_45"/></span></p> Quote:
Code:
<br class="calibre8"/> |
||
|
|
|
|
|
#9 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,057
Karma: 83121446
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Why not just post a scrambled version of the entire Epub?
See https://www.mobileread.com/forums/sh...d.php?t=267998 |
|
|
|
|
|
#10 | |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
Quote:
Spoiler:
Last edited by PeterT; Today at 12:35 PM. |
|
|
|
|
|
|
#11 | |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Neophyte Mugwump
![]() Posts: 10
Karma: 10
Join Date: Aug 2026
Location: Ireland
Device: none
|
Removing <guide> </guide> from the opf file worked. Now all parsing errors are finally fixed. Thanks for helping
|
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,491
Karma: 153744815
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please wrap your code in either code tags or spoiler tags as the code is too long. Thanks.
|
|
|
|
|
|
#14 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,372
Karma: 1589505
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
*Altough not an error, you have two lines that references the same document (without any idenfier), but uses a different type. But since you removed the entire <guide>, this is irrelevant now. _____ Edit: I spotted some errors in the OPF, about filenames (there are spaces in two of them), but after replying I noticed this was caused by the forum itself (using a CODE block prevents the problem). Last edited by thiago.eec; Today at 11:13 AM. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parsing errors | Gaia Neos | Calibre | 4 | 08-08-2026 06:02 AM |
| Parsing error | Notbelonging | Kobo Developer's Corner | 4 | 06-06-2020 03:34 PM |
| A too strict decision? - Check Book with parsing errors | arspr | Editor | 2 | 08-08-2014 06:11 PM |
| Parsing Index | Steven630 | Recipes | 0 | 07-06-2012 04:53 AM |
| Flightcrew says Errors, but Sigil says no Errors… | Barcelona | Sigil | 4 | 02-09-2012 07:13 AM |